Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ image_pipeline = pipeline(task="image-classification", model="guillen/vit-basura
|
|
10 |
|
11 |
def predict_image(input_img):
|
12 |
predictions = image_pipeline(input_img)
|
13 |
-
return
|
14 |
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|
|
|
10 |
|
11 |
def predict_image(input_img):
|
12 |
predictions = image_pipeline(input_img)
|
13 |
+
return {p["label"]: p["score"] for p in predictions}
|
14 |
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|