CultriX commited on
Commit
10abc7f
1 Parent(s): 11c6969

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,11 +57,11 @@ load_dotenv()
57
 
58
  # Access the secret
59
  huggingface_api_key = os.getenv("HF_ACCESS_TOKEN")
 
60
 
61
  print(f"Your API Key is: {huggingface_api_key}")
62
 
63
- Pipeline.from_pretrained('pyannote/speaker-diarization-3.0',
64
- ... use_auth_token=huggingface_api_key
65
  # Configure more application defaults in config.json5
66
 
67
  # Gradio seems to truncate files without keeping the extension, so we need to truncate the file prefix ourself
 
57
 
58
  # Access the secret
59
  huggingface_api_key = os.getenv("HF_ACCESS_TOKEN")
60
+ auth_token = os.getenv("HF_ACCESS_TOKEN")
61
 
62
  print(f"Your API Key is: {huggingface_api_key}")
63
 
64
+
 
65
  # Configure more application defaults in config.json5
66
 
67
  # Gradio seems to truncate files without keeping the extension, so we need to truncate the file prefix ourself