Spaces:
Sleeping
Sleeping
Fix bug
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.3.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -10,6 +10,5 @@ def predict(img):
|
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
title = "Messi or Ronaldo"
|
13 |
-
enable_queue=True
|
14 |
|
15 |
-
gr.Interface(fn=predict,inputs=
|
|
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
title = "Messi or Ronaldo"
|
|
|
13 |
|
14 |
+
gr.Interface(fn=predict,inputs="image",outputs="label",title=title).launch()
|