Spaces:
Runtime error
Runtime error
lecteur image
Browse files
app.py
CHANGED
@@ -3,5 +3,8 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
def segment(image):
|
7 |
+
return image.name
|
8 |
+
|
9 |
+
iface = gr.Interface(fn=segment, inputs="image", outputs="text")
|
10 |
iface.launch()
|