msn-enginenova21 commited on
Commit
d520648
·
1 Parent(s): f9d4d44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -70,6 +70,8 @@ def save_image():
70
  error_message = f"Error: {std_err}"
71
  st.text(error_message)
72
 
 
 
73
  with col2:
74
  detect_image_pred = "yolov5/runs/detect/exp/processed_image.jpg"
75
  if os.path.exists(detect_image_pred):
@@ -77,10 +79,7 @@ def save_image():
77
  st.image(detect_image_pred, caption="Detected Image", use_column_width=True)
78
 
79
  st.text("Detection class probabilities")
80
- if pd_df is not None:
81
- st.text(pd_df)
82
- else:
83
- pass
84
  else:
85
  st.text("Detection Threshold is 60")
86
  st.text("Detection Gesture")
 
70
  error_message = f"Error: {std_err}"
71
  st.text(error_message)
72
 
73
+ st.text(pd_df)
74
+
75
  with col2:
76
  detect_image_pred = "yolov5/runs/detect/exp/processed_image.jpg"
77
  if os.path.exists(detect_image_pred):
 
79
  st.image(detect_image_pred, caption="Detected Image", use_column_width=True)
80
 
81
  st.text("Detection class probabilities")
82
+
 
 
 
83
  else:
84
  st.text("Detection Threshold is 60")
85
  st.text("Detection Gesture")