mgokg commited on
Commit
2c798fb
·
verified ·
1 Parent(s): f42289c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,7 +66,7 @@ class GeminiHandler(AsyncAudioVideoStreamHandler):
66
  def copy(self) -> "GeminiHandler":
67
  return GeminiHandler()
68
 
69
- async def start_up(system_message, self):
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=[model_dropdown, webrtc],
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,