Martin commited on
Commit
9888e4a
1 Parent(s): ec0a6ec

removed timeout

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -243,13 +243,15 @@ detections = st.empty()
243
  if ctx.state.playing:
244
  while True:
245
  # Get stats
246
- stats_dataframe = pd.DataFrame([stats_queue.get(timeout=10)])
 
 
247
 
248
  # Write stats to streamlit
249
- stats.dataframe(stats_dataframe.style.format(thousands=" ", precision=2))
250
 
251
  # Get detections
252
- detections_data = detections_queue.get(timeout=10)
253
  detections_dataframe = (
254
  pd.DataFrame(detections_data)
255
  .drop(columns=["face", "face_match"], errors="ignore")
 
243
  if ctx.state.playing:
244
  while True:
245
  # Get stats
246
+ stats_data = stats_queue.get()
247
+ stats_dataframe = pd.DataFrame([stats_data])
248
+ stats_dataframe.style.format(thousands=" ", precision=2)
249
 
250
  # Write stats to streamlit
251
+ stats.dataframe(stats_dataframe)
252
 
253
  # Get detections
254
+ detections_data = detections_queue.get()
255
  detections_dataframe = (
256
  pd.DataFrame(detections_data)
257
  .drop(columns=["face", "face_match"], errors="ignore")