Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def predict(image):
|
|
| 9 |
predictions = pipeline(image)
|
| 10 |
return {p["label"]: p["score"] for p in predictions}
|
| 11 |
|
| 12 |
-
gr.
|
| 13 |
predict,
|
| 14 |
inputs = gr.Image(label="Upload hot dog candidate", type = "filepath"),
|
| 15 |
outputs = gr.Label(num_top_classes=2),
|
|
|
|
| 9 |
predictions = pipeline(image)
|
| 10 |
return {p["label"]: p["score"] for p in predictions}
|
| 11 |
|
| 12 |
+
gr.Interface(
|
| 13 |
predict,
|
| 14 |
inputs = gr.Image(label="Upload hot dog candidate", type = "filepath"),
|
| 15 |
outputs = gr.Label(num_top_classes=2),
|