Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotd
|
|
7 |
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
10 |
-
return
|
11 |
|
12 |
gr.interface(
|
13 |
predict,
|
|
|
7 |
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
10 |
+
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
gr.interface(
|
13 |
predict,
|