noumanjavaid commited on
Commit
358e384
·
verified ·
1 Parent(s): 90b4c24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -54,7 +54,8 @@ MEDIA_TO_GEMINI_QUEUE_MAXSIZE = 10
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
 
@@ -165,7 +166,7 @@ class GeminiInteractionLoop:
165
  return
166
  try:
167
  logging.info(f"Sending text to Gemini: '{user_text[:50]}...'")
168
- await self.gemini_session.send_client_content(types.Part(text=user_text))
169
  except Exception as e:
170
  logging.error(
171
  f"Error sending text message to Gemini: {e}", exc_info=True)
 
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
 
 
166
  return
167
  try:
168
  logging.info(f"Sending text to Gemini: '{user_text[:50]}...'")
169
+ await self.gemini_session.send_client_content(text=user_text)
170
  except Exception as e:
171
  logging.error(
172
  f"Error sending text message to Gemini: {e}", exc_info=True)