D0k-tor's picture
Update app.py
b922d45
raw
history blame
505 Bytes
import gradio as gr
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()
inputs = gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
output = gr.outputs.Textbox(type="text",label="Captions")
interface = gr.Interface(
fn=predict,
description=description,
inputs = inputs,
theme="grass",
outputs=output,
title=title,
)
interface.launch(debug=True)