Pamudu13 commited on
Commit
c0a0dd4
·
verified ·
1 Parent(s): 66ea537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -501,7 +501,7 @@ def stream_logs():
501
  while True:
502
  try:
503
  # Get log message from queue, timeout after 1 second
504
- log_message = log_queue.get(timeout=1)
505
  yield f"data: {log_message}\n\n"
506
  except queue.Empty:
507
  # Send a heartbeat to keep the connection alive
 
501
  while True:
502
  try:
503
  # Get log message from queue, timeout after 1 second
504
+ log_message = log_queue.get()
505
  yield f"data: {log_message}\n\n"
506
  except queue.Empty:
507
  # Send a heartbeat to keep the connection alive