Spaces:
Runtime error
Runtime error
import gradio as gr | |
from PIL import Image | |
import numpy as np | |
def greet(name, place): | |
return Image.open('sample.jpg') | |
iface = gr.Interface( | |
title="Dialogue Box", | |
description="upload a comic and enter a dialogue", | |
fn=greet, | |
inputs=[ | |
gr.Textbox(placeholder="in 1", value="in 1"), | |
gr.Textbox(placeholder="in 2", value="in 2"), | |
], | |
outputs=gr.Image() | |
) | |
iface.launch() | |