Spaces:
Running on Zero
Running on Zero
Commit ·
d09fc0f
1
Parent(s): e520f20
Update app for Gradio 6 API changes
Browse files
app.py
CHANGED
|
@@ -233,7 +233,7 @@ def diarize(
|
|
| 233 |
|
| 234 |
|
| 235 |
def build_demo() -> gr.Blocks:
|
| 236 |
-
with gr.Blocks(
|
| 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 |
-
|
| 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())
|