Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from transformers import pipeline as hf_pipeline
|
|
| 9 |
|
| 10 |
# --- CONFIG ---
|
| 11 |
DIAR_PYMODEL = "pyannote/speaker-diarization" # or a specific version
|
| 12 |
-
HF_TOKEN = os.environ.get("HF_TOKEN", None) # set as secret in
|
| 13 |
DEVICE = 0 if torch.cuda.is_available() else -1
|
| 14 |
|
| 15 |
# create pipelines cache
|
|
|
|
| 9 |
|
| 10 |
# --- CONFIG ---
|
| 11 |
DIAR_PYMODEL = "pyannote/speaker-diarization" # or a specific version
|
| 12 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", None) # set as secret in Spac
|
| 13 |
DEVICE = 0 if torch.cuda.is_available() else -1
|
| 14 |
|
| 15 |
# create pipelines cache
|