Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ class GeminiHandler(AsyncAudioVideoStreamHandler):
|
|
66 |
def copy(self) -> "GeminiHandler":
|
67 |
return GeminiHandler()
|
68 |
|
69 |
-
async def start_up(
|
70 |
client = genai.Client(
|
71 |
api_key=os.getenv("GEMINI_API_KEY"), http_options={"api_version": "v1alpha"}
|
72 |
)
|
@@ -232,7 +232,7 @@ with gr.Blocks(css=css) as demo:
|
|
232 |
|
233 |
webrtc.stream(
|
234 |
GeminiHandler(),
|
235 |
-
inputs=[
|
236 |
outputs=[webrtc],
|
237 |
time_limit=1800 if get_space() else None,
|
238 |
concurrency_limit=2 if get_space() else None,
|
|
|
66 |
def copy(self) -> "GeminiHandler":
|
67 |
return GeminiHandler()
|
68 |
|
69 |
+
async def start_up(self, system_message):
|
70 |
client = genai.Client(
|
71 |
api_key=os.getenv("GEMINI_API_KEY"), http_options={"api_version": "v1alpha"}
|
72 |
)
|
|
|
232 |
|
233 |
webrtc.stream(
|
234 |
GeminiHandler(),
|
235 |
+
inputs=[webrtc, model_dropdown],
|
236 |
outputs=[webrtc],
|
237 |
time_limit=1800 if get_space() else None,
|
238 |
concurrency_limit=2 if get_space() else None,
|