File size: 437 Bytes
40fd9d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
edaad47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()