Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -2
src/streamlit_app.py
CHANGED
@@ -13,7 +13,8 @@ from dotenv import load_dotenv
|
|
13 |
|
14 |
import cv2 # For image processing
|
15 |
import pyaudio # For audio PLAYBACK
|
16 |
-
import PIL.
|
|
|
17 |
|
18 |
from google import genai
|
19 |
from google.genai import types
|
@@ -106,7 +107,7 @@ else:
|
|
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=
|
110 |
voice_config=types.VoiceConfig(
|
111 |
prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
|
112 |
),
|
|
|
13 |
|
14 |
import cv2 # For image processing
|
15 |
import pyaudio # For audio PLAYBACK
|
16 |
+
import PIL.
|
17 |
+
Image
|
18 |
|
19 |
from google import genai
|
20 |
from google.genai import types
|
|
|
107 |
# If this still fails, the issue is likely MODEL_NAME or API Key/Project permissions.
|
108 |
LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
|
109 |
response_modalities=["audio"], # Start with text only
|
110 |
+
speech_config=types.SpeechConfig(
|
111 |
voice_config=types.VoiceConfig(
|
112 |
prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
|
113 |
),
|