bori0824 commited on
Commit
40fd9d0
1 Parent(s): 70d06f4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from PIL import Image
3
+
4
+ # Function to display the image
5
+ def show_image():
6
+ image = Image.open('the_peddlers_magic_seeds.jpg') # Ensure this image is in the repository
7
+ return image
8
+
9
+ # Gradio interface
10
+ iface = gr.Interface(
11
+ fn=show_image,
12
+ inputs=[],
13
+ outputs="image",
14
+ title="The Peddler's Magic Seeds",
15
+ description="Click the title to reveal the image related to the story."
16
+ )
17
+
18
+ iface.launch()