EYEDOL commited on
Commit
78084f0
·
verified ·
1 Parent(s): e73b59f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 Space if required
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