Ratnesh-dev commited on
Commit
d09fc0f
·
1 Parent(s): e520f20

Update app for Gradio 6 API changes

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -233,7 +233,7 @@ def diarize(
233
 
234
 
235
  def build_demo() -> gr.Blocks:
236
- with gr.Blocks(theme=gr.themes.Soft(), title="Pyannote Speaker Diarization") as demo:
237
  gr.Markdown(
238
  """
239
  # Speaker diarization with pyannote Community-1
@@ -293,7 +293,7 @@ def build_demo() -> gr.Blocks:
293
  turns_output = gr.Textbox(
294
  label="Speaker turns",
295
  lines=14,
296
- show_copy_button=True,
297
  )
298
  files_output = gr.File(label="Download outputs", file_count="multiple")
299
 
@@ -323,4 +323,4 @@ demo = build_demo()
323
  demo.queue(default_concurrency_limit=1)
324
 
325
  if __name__ == "__main__":
326
- demo.launch()
 
233
 
234
 
235
  def build_demo() -> gr.Blocks:
236
+ with gr.Blocks(title="Pyannote Speaker Diarization") as demo:
237
  gr.Markdown(
238
  """
239
  # Speaker diarization with pyannote Community-1
 
293
  turns_output = gr.Textbox(
294
  label="Speaker turns",
295
  lines=14,
296
+ buttons=["copy"],
297
  )
298
  files_output = gr.File(label="Download outputs", file_count="multiple")
299
 
 
323
  demo.queue(default_concurrency_limit=1)
324
 
325
  if __name__ == "__main__":
326
+ demo.launch(theme=gr.themes.Soft())