File size: 419 Bytes
88476e3 d64af88 5965aac dc7de94 e991f14 5965aac dc7de94 e991f14 d64af88 dc7de94 88476e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
from PIL import Image
import numpy as np
def greet(name, place):
return np.array(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()
|