Spaces:
Runtime error
Runtime error
File size: 505 Bytes
84f3f84 e59dcf6 84f3f84 e59dcf6 b922d45 e59dcf6 333c77f e59dcf6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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)
|