Spaces:
Sleeping
Sleeping
faisal-fida commited on
Commit ·
2f05f53
1
Parent(s): 4197aad
new
Browse files
app.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def greet(name):
|
| 4 |
-
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
| 3 |
|
| 4 |
+
def greet(name, image):
|
| 5 |
+
return "Hello " + name + "!!", image
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
iface = gr.Interface(
|
| 9 |
+
fn=greet, inputs=["text", "image"], outputs=["text", "image"])
|
| 10 |
+
iface.launch()
|