Spaces:
Sleeping
Sleeping
remove status bar
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ class GeminiHandler(StreamHandler):
|
|
123 |
if 'serverContent' in msg:
|
124 |
content = msg['serverContent'].get('modelTurn', {})
|
125 |
yield from self._process_server_content(content)
|
126 |
-
except
|
127 |
print("Timeout waiting for server response")
|
128 |
yield None
|
129 |
except Exception as e:
|
@@ -173,8 +173,6 @@ class GeminiVoiceChat:
|
|
173 |
</div>
|
174 |
""")
|
175 |
|
176 |
-
error_message = gr.Textbox(label="Status", interactive=False)
|
177 |
-
|
178 |
webrtc = WebRTC(
|
179 |
label="Conversation",
|
180 |
modality="audio",
|
@@ -185,7 +183,7 @@ class GeminiVoiceChat:
|
|
185 |
webrtc.stream(
|
186 |
GeminiHandler(),
|
187 |
inputs=[webrtc],
|
188 |
-
outputs=[webrtc
|
189 |
time_limit=90,
|
190 |
concurrency_limit=10
|
191 |
)
|
|
|
123 |
if 'serverContent' in msg:
|
124 |
content = msg['serverContent'].get('modelTurn', {})
|
125 |
yield from self._process_server_content(content)
|
126 |
+
except TimeoutError:
|
127 |
print("Timeout waiting for server response")
|
128 |
yield None
|
129 |
except Exception as e:
|
|
|
173 |
</div>
|
174 |
""")
|
175 |
|
|
|
|
|
176 |
webrtc = WebRTC(
|
177 |
label="Conversation",
|
178 |
modality="audio",
|
|
|
183 |
webrtc.stream(
|
184 |
GeminiHandler(),
|
185 |
inputs=[webrtc],
|
186 |
+
outputs=[webrtc],
|
187 |
time_limit=90,
|
188 |
concurrency_limit=10
|
189 |
)
|