Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ class GeminiHandler(AsyncStreamHandler):
|
|
| 73 |
|
| 74 |
client = genai.Client(
|
| 75 |
api_key=api_key or os.getenv("GEMINI_API_KEY"),
|
| 76 |
-
http_options={"api_version": "
|
| 77 |
)
|
| 78 |
|
| 79 |
# Define the tools and system instruction
|
|
@@ -100,7 +100,7 @@ class GeminiHandler(AsyncStreamHandler):
|
|
| 100 |
)
|
| 101 |
|
| 102 |
async with client.aio.live.connect(
|
| 103 |
-
model="gemini-2.5-flash-
|
| 104 |
) as session:
|
| 105 |
async for audio in session.start_stream(
|
| 106 |
stream=self.stream(), mime_type="audio/pcm"
|
|
|
|
| 73 |
|
| 74 |
client = genai.Client(
|
| 75 |
api_key=api_key or os.getenv("GEMINI_API_KEY"),
|
| 76 |
+
http_options={"api_version": "v1beta"},
|
| 77 |
)
|
| 78 |
|
| 79 |
# Define the tools and system instruction
|
|
|
|
| 100 |
)
|
| 101 |
|
| 102 |
async with client.aio.live.connect(
|
| 103 |
+
model="gemini-2.5-flash-native-audio-preview-12-2025", config=config
|
| 104 |
) as session:
|
| 105 |
async for audio in session.start_stream(
|
| 106 |
stream=self.stream(), mime_type="audio/pcm"
|