Rodrigo_Cobo
commited on
Commit
·
77dd0d7
1
Parent(s):
675a26e
testing
Browse files
app.py
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
|
4 |
-
def
|
5 |
-
|
6 |
-
return image
|
7 |
|
8 |
iface = gr.Interface(
|
9 |
-
|
10 |
-
inputs=
|
11 |
-
outputs=
|
12 |
title="Hot Dog? Or Not?",
|
13 |
)
|
14 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
|
4 |
+
def image_classifier(inp):
|
5 |
+
return {'cat': 0.3, 'dog': 0.7}
|
|
|
6 |
|
7 |
iface = gr.Interface(
|
8 |
+
image_classifier,
|
9 |
+
inputs="image",
|
10 |
+
outputs="label",
|
11 |
title="Hot Dog? Or Not?",
|
12 |
)
|
13 |
iface.launch()
|