Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
|
5 |
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# def greet(name):
|
4 |
+
# return "Hello " + name + "!!"
|
5 |
|
6 |
+
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
# iface.launch()
|
8 |
+
|
9 |
+
inputs = gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
|
10 |
+
output = gr.outputs.Textbox(type="auto",label="Captions")
|
11 |
+
|
12 |
+
interface = gr.Interface(
|
13 |
+
fn=predict,
|
14 |
+
description=description,
|
15 |
+
inputs = input,
|
16 |
+
theme="grass",
|
17 |
+
outputs=output,
|
18 |
+
title=title,
|
19 |
+
)
|
20 |
+
interface.launch(debug=True)
|