bori0824's picture
Create app.py
40fd9d0 verified
raw
history blame
437 Bytes
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()