demo / app.py
anagri
[Amir] showing image as output
d64af88
raw
history blame
425 Bytes
import gradio as gr
from PIL import Image
from numpy import asarray
def greet(name, place):
return asarray(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()