mgokg commited on
Commit
824c94e
·
verified ·
1 Parent(s): eeb65d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- <p>Get an API Key <a href="https://support.google.com/googleapi/answer/6158862?hl=en">here</a></p>
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
- image_input = gr.Image(
171
- label="Image", type="numpy", sources=["upload", "clipboard"]
172
- )
173
 
174
  webrtc.stream(
175
  GeminiHandler(),
176
- inputs=[webrtc, image_input],
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,