noumanjavaid commited on
Commit
6e10b91
·
verified ·
1 Parent(s): 358e384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,8 +54,7 @@ MEDIA_TO_GEMINI_QUEUE_MAXSIZE = 10
54
  AUDIO_PLAYBACK_QUEUE_MAXSIZE = 10
55
 
56
  # WebRTC settings
57
- WEBRTC_REQUESTED_SEND_SAMPLE_RATE
58
- = SEND_SAMPLE_RATE
59
  WEBRTC_REQUESTED_AUDIO_CHANNELS = CHANNELS
60
 
61
 
@@ -470,7 +469,8 @@ class GeminiInteractionLoop:
470
  task.cancel()
471
  # Await their cancellation (or completion if they finished cleanly before cancel)
472
  if tasks: # Ensure tasks list is not empty
473
- await asyncio.gather(*tasks, return_exceptions=True) # Suppress errors from already handled/cancelled tasks
 
474
  logging.info("Gemini interaction tasks processing completed or handled.")
475
 
476
  except websockets.exceptions.ConnectionClosedError as e:
 
54
  AUDIO_PLAYBACK_QUEUE_MAXSIZE = 10
55
 
56
  # WebRTC settings
57
+ WEBRTC_REQUESTED_SEND_SAMPLE_RATE = SEND_SAMPLE_RATE
 
58
  WEBRTC_REQUESTED_AUDIO_CHANNELS = CHANNELS
59
 
60
 
 
469
  task.cancel()
470
  # Await their cancellation (or completion if they finished cleanly before cancel)
471
  if tasks: # Ensure tasks list is not empty
472
+ await asyncio.gather(*tasks, return_exceptions
473
+ =True) # Suppress errors from already handled/cancelled tasks
474
  logging.info("Gemini interaction tasks processing completed or handled.")
475
 
476
  except websockets.exceptions.ConnectionClosedError as e: