Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1279,9 +1279,10 @@ if my_upload is not None:
|
|
1279 |
classification_result = image_classifier(image)
|
1280 |
top_prediction = classification_result[0]
|
1281 |
label = top_prediction['label']
|
1282 |
-
score = top_prediction['score']
|
1283 |
st.sidebar.text("Top Prediction:")
|
1284 |
-
st.sidebar.text(f"Label: {label}, Score: {score:.3f}")
|
|
|
1285 |
except Exception as e:
|
1286 |
st.error(f"Error during classification: {str(e)}")
|
1287 |
|
|
|
1279 |
classification_result = image_classifier(image)
|
1280 |
top_prediction = classification_result[0]
|
1281 |
label = top_prediction['label']
|
1282 |
+
#score = top_prediction['score']
|
1283 |
st.sidebar.text("Top Prediction:")
|
1284 |
+
# st.sidebar.text(f"Label: {label}, Score: {score:.3f}")
|
1285 |
+
st.sidebar.text(f"Label: {label}")
|
1286 |
except Exception as e:
|
1287 |
st.error(f"Error during classification: {str(e)}")
|
1288 |
|