import gradio as gr | |
from PIL import Image | |
# Function to display the image | |
def show_image(): | |
image = Image.open('the_peddlers_magic_seeds.jpg') # Ensure this image is in the repository | |
return image | |
# Gradio interface | |
iface = gr.Interface( | |
fn=show_image, | |
inputs=[], | |
outputs="image", | |
title="The Peddler's Magic Seeds", | |
description="Click the title to reveal the image related to the story." | |
) | |
iface.launch() |