Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 149 |
<h1>Gen AI SDK Voice Chat</h1>
|
| 150 |
<p>Speak with Gemini using real-time audio + video streaming</p>
|
| 151 |
<p>Powered by <a href="https://gradio.app/">Gradio</a> and <a href=https://freddyaboulton.github.io/gradio-webrtc/">WebRTC</a>⚡️</p>
|
| 152 |
-
|
| 153 |
</div>
|
| 154 |
</div>
|
| 155 |
"""
|
|
@@ -166,14 +166,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 166 |
pulse_color="rgb(255, 255, 255)",
|
| 167 |
icon_button_color="rgb(255, 255, 255)",
|
| 168 |
)
|
| 169 |
-
with gr.Column():
|
| 170 |
-
|
| 171 |
-
label="Image", type="numpy", sources=["upload", "clipboard"]
|
| 172 |
-
)
|
| 173 |
|
| 174 |
webrtc.stream(
|
| 175 |
GeminiHandler(),
|
| 176 |
-
inputs=[webrtc
|
| 177 |
outputs=[webrtc],
|
| 178 |
time_limit=180 if get_space() else None,
|
| 179 |
concurrency_limit=2 if get_space() else None,
|
|
|
|
| 149 |
<h1>Gen AI SDK Voice Chat</h1>
|
| 150 |
<p>Speak with Gemini using real-time audio + video streaming</p>
|
| 151 |
<p>Powered by <a href="https://gradio.app/">Gradio</a> and <a href=https://freddyaboulton.github.io/gradio-webrtc/">WebRTC</a>⚡️</p>
|
| 152 |
+
|
| 153 |
</div>
|
| 154 |
</div>
|
| 155 |
"""
|
|
|
|
| 166 |
pulse_color="rgb(255, 255, 255)",
|
| 167 |
icon_button_color="rgb(255, 255, 255)",
|
| 168 |
)
|
| 169 |
+
#with gr.Column():
|
| 170 |
+
#mage_input = gr.Image(
|
| 171 |
+
#label="Image", type="numpy", sources=["upload", "clipboard"]
|
| 172 |
+
#)
|
| 173 |
|
| 174 |
webrtc.stream(
|
| 175 |
GeminiHandler(),
|
| 176 |
+
inputs=[webrtc],
|
| 177 |
outputs=[webrtc],
|
| 178 |
time_limit=180 if get_space() else None,
|
| 179 |
concurrency_limit=2 if get_space() else None,
|