Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
6d43bc6
1
Parent(s):
e1e635d
update
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import json
|
|
| 7 |
import requests
|
| 8 |
from nemo.collections.asr.models import SortformerEncLabelModel
|
| 9 |
|
| 10 |
-
diar_model = SortformerEncLabelModel.from_pretrained("nvidia/diar_streaming_sortformer_4spk-v2")
|
| 11 |
diar_model.eval()
|
| 12 |
|
| 13 |
diar_model.sortformer_modules.chunk_len = 340
|
|
@@ -95,7 +95,7 @@ def format_results(results):
|
|
| 95 |
|
| 96 |
# Gradio interface
|
| 97 |
with gr.Blocks() as demo:
|
| 98 |
-
gr.Markdown("# Speaker Diarization with nvidia/diar_streaming_sortformer_4spk-v2")
|
| 99 |
gr.Markdown("Upload an audio file and specify the number of speakers to diarize the audio.")
|
| 100 |
|
| 101 |
with gr.Row():
|
|
|
|
| 7 |
import requests
|
| 8 |
from nemo.collections.asr.models import SortformerEncLabelModel
|
| 9 |
|
| 10 |
+
diar_model = SortformerEncLabelModel.from_pretrained("nvidia/diar_streaming_sortformer_4spk-v2.1")
|
| 11 |
diar_model.eval()
|
| 12 |
|
| 13 |
diar_model.sortformer_modules.chunk_len = 340
|
|
|
|
| 95 |
|
| 96 |
# Gradio interface
|
| 97 |
with gr.Blocks() as demo:
|
| 98 |
+
gr.Markdown("# Speaker Diarization with nvidia/diar_streaming_sortformer_4spk-v2.1")
|
| 99 |
gr.Markdown("Upload an audio file and specify the number of speakers to diarize the audio.")
|
| 100 |
|
| 101 |
with gr.Row():
|