Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,5 +65,5 @@ if uploaded_file is not None:
|
|
| 65 |
st.write(f"⏱️ Inference Time: **{elapsed_time:.4f} seconds**")
|
| 66 |
|
| 67 |
# Call speak_auto function to speak out the prediction
|
| 68 |
-
prediction_text = f"The person is {label} with a confidence of {confidence:.2%}."
|
| 69 |
speak_auto(prediction_text) # Auto-play speech
|
|
|
|
| 65 |
st.write(f"⏱️ Inference Time: **{elapsed_time:.4f} seconds**")
|
| 66 |
|
| 67 |
# Call speak_auto function to speak out the prediction
|
| 68 |
+
prediction_text = f"The person in the uploaded image is {label} with a prediction confidence of {confidence:.2%}."
|
| 69 |
speak_auto(prediction_text) # Auto-play speech
|