noumanjavaid commited on
Commit
37d5fa0
·
verified ·
1 Parent(s): 6e10b91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -158,14 +158,13 @@ class GeminiInteractionLoop:
158
  self.is_running = True
159
  self.playback_stream = None
160
 
161
- async def send_text_input_to_gemini(self, user_text):
162
  if not user_text or not self.gemini_session or not self.is_running:
163
  logging.warning(
164
  "Cannot send text. Session not active, no text, or not running.")
165
  return
166
  try:
167
- logging.info(f"Sending text to Gemini: '{user_text[:50]}...'")
168
- await self.gemini_session.send_client_content(text=user_text)
169
  except Exception as e:
170
  logging.error(
171
  f"Error sending text message to Gemini: {e}", exc_info=True)
 
158
  self.is_running = True
159
  self.playback_stream = None
160
 
161
+ async def send_text_input_to_gemini(self):
162
  if not user_text or not self.gemini_session or not self.is_running:
163
  logging.warning(
164
  "Cannot send text. Session not active, no text, or not running.")
165
  return
166
  try:
167
+ await self.gemini_session.send_client_content
 
168
  except Exception as e:
169
  logging.error(
170
  f"Error sending text message to Gemini: {e}", exc_info=True)