sevahu97 commited on
Commit
1c39706
·
verified ·
1 Parent(s): b607996

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -287,7 +287,7 @@ is the meter.
287
  """
288
 
289
 
290
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Second Ear") as demo:
291
  with gr.Column(elem_id="col-container"):
292
  gr.Markdown(
293
  "# Second Ear\n"
@@ -314,8 +314,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Second Ear") as demo:
314
  "should sit for this genre."
315
  )
316
  live_in = gr.Audio(sources=["microphone"], streaming=True,
317
- type="numpy", label="Studio input",
318
- show_download_button=False)
319
  live_meters = gr.HTML(render.idle("waiting for signal…"))
320
  live_notes = gr.HTML(render.idle("no findings yet"))
321
 
@@ -409,4 +408,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Second Ear") as demo:
409
 
410
 
411
  if __name__ == "__main__":
412
- demo.queue(default_concurrency_limit=4).launch(mcp_server=True)
 
 
 
 
 
 
287
  """
288
 
289
 
290
+ with gr.Blocks(title="Second Ear") as demo:
291
  with gr.Column(elem_id="col-container"):
292
  gr.Markdown(
293
  "# Second Ear\n"
 
314
  "should sit for this genre."
315
  )
316
  live_in = gr.Audio(sources=["microphone"], streaming=True,
317
+ type="numpy", label="Studio input")
 
318
  live_meters = gr.HTML(render.idle("waiting for signal…"))
319
  live_notes = gr.HTML(render.idle("no findings yet"))
320
 
 
408
 
409
 
410
  if __name__ == "__main__":
411
+ # Gradio 6 moved theme and css off the Blocks constructor onto launch().
412
+ demo.queue(default_concurrency_limit=4).launch(
413
+ theme=gr.themes.Citrus(),
414
+ css=CSS,
415
+ mcp_server=True,
416
+ )