Spaces:
Build error
Build error
Commit
·
20b6e56
1
Parent(s):
6fe710e
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 9 |
model = NeuralDiarizer.from_pretrained("diar_msdd_telephonic").to(device)
|
| 10 |
|
| 11 |
def run_diarization(path1):
|
| 12 |
-
annotation = model(path1)
|
| 13 |
rttm=annotation.to_rttm()
|
| 14 |
df = pd.DataFrame(columns=['start_time', 'end_time', 'speaker'])
|
| 15 |
for idx,line in enumerate(rttm.splitlines()):
|
|
|
|
| 9 |
model = NeuralDiarizer.from_pretrained("diar_msdd_telephonic").to(device)
|
| 10 |
|
| 11 |
def run_diarization(path1):
|
| 12 |
+
annotation = model(path1, num_workers=0)
|
| 13 |
rttm=annotation.to_rttm()
|
| 14 |
df = pd.DataFrame(columns=['start_time', 'end_time', 'speaker'])
|
| 15 |
for idx,line in enumerate(rttm.splitlines()):
|