Spaces:
Runtime error
Runtime error
Commit
·
397022b
1
Parent(s):
693cacf
bug tracing
Browse files
app.py
CHANGED
@@ -64,8 +64,11 @@ def self_caption(image):
|
|
64 |
preds = [pred.strip() for pred in preds]
|
65 |
print("Predictions")
|
66 |
print(preds)
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
69 |
|
70 |
def classify_image(image):
|
71 |
results = image_pipe(image)
|
|
|
64 |
preds = [pred.strip() for pred in preds]
|
65 |
print("Predictions")
|
66 |
print(preds)
|
67 |
+
pred_output = {}
|
68 |
+
for prediction in preds:
|
69 |
+
pred_output[predicted_label] = prediction
|
70 |
+
|
71 |
+
return pred_output
|
72 |
|
73 |
def classify_image(image):
|
74 |
results = image_pipe(image)
|