Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -105,8 +105,12 @@ else:
|
|
| 105 |
# Start with the absolute minimum. If this connects, incrementally add back features.
|
| 106 |
# If this still fails, the issue is likely MODEL_NAME or API Key/Project permissions.
|
| 107 |
LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
|
| 108 |
-
response_modalities=["
|
| 109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
)
|
| 111 |
logging.info(f"Attempting connection with highly simplified LiveConnectConfig: {LIVE_CONNECT_CONFIG}")
|
| 112 |
|
|
|
|
| 105 |
# Start with the absolute minimum. If this connects, incrementally add back features.
|
| 106 |
# If this still fails, the issue is likely MODEL_NAME or API Key/Project permissions.
|
| 107 |
LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
|
| 108 |
+
response_modalities=["audio"], # Start with text only
|
| 109 |
+
speech_config=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 |
|