Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,11 @@ from transformers import pipeline as hf_pipeline
|
|
| 12 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 13 |
|
| 14 |
diarization_pipeline = Pipeline.from_pretrained(
|
| 15 |
-
"pyannote/speaker-diarization",
|
| 16 |
-
|
| 17 |
)
|
| 18 |
|
|
|
|
| 19 |
whisper_model = whisper.load_model("base")
|
| 20 |
|
| 21 |
sentiment_pipeline = hf_pipeline(
|
|
|
|
| 12 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 13 |
|
| 14 |
diarization_pipeline = Pipeline.from_pretrained(
|
| 15 |
+
"pyannote/speaker-diarization-3.1", # Highly recommended to use the latest version
|
| 16 |
+
token=HF_TOKEN
|
| 17 |
)
|
| 18 |
|
| 19 |
+
|
| 20 |
whisper_model = whisper.load_model("base")
|
| 21 |
|
| 22 |
sentiment_pipeline = hf_pipeline(
|