Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|