Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 |
-
|
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)
|