DavidFernandes commited on
Commit
43a2cc7
·
verified ·
1 Parent(s): 1d9fca0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,7 +4,9 @@ from key import HF_ACCESS_TOKEN
4
  import numpy as np
5
  import io
6
  import soundfile as sf
 
7
 
 
8
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3"
9
  headers = {"Authorization": f"Bearer {HF_ACCESS_TOKEN}"}
10
 
 
4
  import numpy as np
5
  import io
6
  import soundfile as sf
7
+ import os
8
 
9
+ HF_ACCESS_TOKEN = os.environ['HF_ACCESS_TOKEN']
10
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3"
11
  headers = {"Authorization": f"Bearer {HF_ACCESS_TOKEN}"}
12