ERAV2_S24 / app.py
Vasudevakrishna's picture
Create app.py
a2152cc verified
raw
history blame
785 Bytes
import gradio as gr
from PIL import Image
from utils import generate_gradio_images
# Create a Gradio interface
iface = gr.Interface(
fn=generate_gradio_images, # Set to None since we won't use a function
inputs=[
gr.Textbox("Enter Prompt"),
gr.Slider("Time Stamps", value=1, step=1, maximum=50),
gr.Checkbox(label = "Use custom loss",value=False)
],
outputs=[gr.Image(type="pil", height=512, width = 512),
gr.Image(type="pil", height=512, width = 512),
gr.Image(type="pil", height=512, width = 512),
gr.Image(type="pil", height=512, width = 512),
gr.Image(type="pil", height=512, width = 512)] # Gradio Image component for displaying images
)
# Launch the Gradio interface
iface.launch()