Spaces:
Runtime error
Runtime error
Adonai Vera commited on
Commit ·
2bfbeec
1
Parent(s): 5ce25b8
token
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ def classify_image(image):
|
|
| 16 |
# Extract labels and scores
|
| 17 |
return {dic["label"]: dic["score"] for dic in res}
|
| 18 |
|
|
|
|
| 19 |
# Create the Gradio interface
|
| 20 |
iface = gr.Interface(
|
| 21 |
classify_image,
|
|
|
|
| 16 |
# Extract labels and scores
|
| 17 |
return {dic["label"]: dic["score"] for dic in res}
|
| 18 |
|
| 19 |
+
|
| 20 |
# Create the Gradio interface
|
| 21 |
iface = gr.Interface(
|
| 22 |
classify_image,
|