Spaces:
Runtime error
Runtime error
Commit
·
10b1625
1
Parent(s):
15ba74e
Template 2
Browse files
app.py
CHANGED
@@ -3,11 +3,19 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
iface = gr.Interface(
|
7 |
fn=greet,
|
8 |
title="Space Title Here",
|
9 |
description = "Description Here",
|
10 |
-
inputs=
|
11 |
-
outputs="
|
12 |
)
|
13 |
iface.launch()
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
gr_input = [
|
7 |
+
gr.inputs.Image(type='pil', label="Original Image")
|
8 |
+
]
|
9 |
+
|
10 |
+
gr_output = [
|
11 |
+
gr.outputs.Image(type="pil",label="Output Image")
|
12 |
+
]
|
13 |
+
|
14 |
iface = gr.Interface(
|
15 |
fn=greet,
|
16 |
title="Space Title Here",
|
17 |
description = "Description Here",
|
18 |
+
inputs = gr_input,
|
19 |
+
outputs = gr_output"
|
20 |
)
|
21 |
iface.launch()
|