Delik commited on
Commit
656c023
1 Parent(s): 633b502

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["api"]
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")