Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ def predict_image(pic):
|
|
60 |
if preds[list_desc_order[1]] > 0.3:
|
61 |
result2 = f'c{list_desc_order[1]}'
|
62 |
result2_ = round(preds[list_desc_order[1]], 2)
|
63 |
-
txt = f"category {directory} result 1 {result1} {round(preds[list_desc_order[0]],2)} | result2 {result2} {result2_}"
|
64 |
-
txt = f"categoria {directory}"
|
65 |
|
66 |
score = round(preds[list_desc_order[0]], 2)*100
|
67 |
score = int(score)
|
|
|
60 |
if preds[list_desc_order[1]] > 0.3:
|
61 |
result2 = f'c{list_desc_order[1]}'
|
62 |
result2_ = round(preds[list_desc_order[1]], 2)
|
63 |
+
#txt = f"category {directory} result 1 {result1} {round(preds[list_desc_order[0]],2)} | result2 {result2} {result2_}"
|
64 |
+
#txt = f"categoria {directory}"
|
65 |
|
66 |
score = round(preds[list_desc_order[0]], 2)*100
|
67 |
score = int(score)
|