Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from pyannote.audio import Pipeline
|
|
8 |
try:
|
9 |
pipeline = Pipeline.from_pretrained(
|
10 |
"pyannote/speaker-diarization-3.1",
|
11 |
-
use_auth_token=os.environ["
|
12 |
)
|
13 |
# Move the pipeline to the GPU
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
8 |
try:
|
9 |
pipeline = Pipeline.from_pretrained(
|
10 |
"pyannote/speaker-diarization-3.1",
|
11 |
+
use_auth_token=os.environ["HUGGINGFACE_READ_TOKEN"]
|
12 |
)
|
13 |
# Move the pipeline to the GPU
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|