noumanjavaid commited on
Commit
ed44aa7
·
verified ·
1 Parent(s): 8ce9c6a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -5
src/streamlit_app.py CHANGED
@@ -108,11 +108,9 @@ LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
108
  response_modalities=["audio"], # Start with text only
109
  speech_config=types.SpeechConfig(
110
  voice_config=types.VoiceConfig(
111
- prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
112
  ),
113
- # Explicitly None or omit
114
- )
115
- logging.info(f"Attempting connection with highly simplified LiveConnectConfig: {LIVE_CONNECT_CONFIG}")
116
 
117
  # --- Backend Gemini Interaction Loop ---
118
  class GeminiInteractionLoop:
@@ -313,7 +311,8 @@ class VideoProcessor(VideoProcessorBase):
313
  video_frames_to_gemini_q.put_nowait(api_data)
314
  except Exception as e: logging.error(f"Error processing/queueing video frame: {e}", exc_info=True)
315
 
316
- async def recv(self, frame):
 
317
  img_bgr = frame.to_ndarray(format="bgr24")
318
  try:
319
  loop = asyncio.get_running_loop()
 
108
  response_modalities=["audio"], # Start with text only
109
  speech_config=types.SpeechConfig(
110
  voice_config=types.VoiceConfig(
111
+ prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Zephyr")
112
  ),
113
+ )
 
 
114
 
115
  # --- Backend Gemini Interaction Loop ---
116
  class GeminiInteractionLoop:
 
311
  video_frames_to_gemini_q.put_nowait(api_data)
312
  except Exception as e: logging.error(f"Error processing/queueing video frame: {e}", exc_info=True)
313
 
314
+ async def recv(self
315
+ , frame):
316
  img_bgr = frame.to_ndarray(format="bgr24")
317
  try:
318
  loop = asyncio.get_running_loop()