Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import PyPDF2
|
|
12 |
# Hugging Face API endpoint and keys
|
13 |
HF_API_URL_STT = "https://api-inference.huggingface.co/models/openai/whisper-base"
|
14 |
HF_API_URL_CONVERSATION = "https://api-inference.huggingface.co/models/facebook/blenderbot-400M-distill"
|
15 |
-
HF_API_KEY =
|
16 |
|
17 |
# Parameters
|
18 |
silence_threshold = 0.01 # Silence threshold for audio detection
|
|
|
12 |
# Hugging Face API endpoint and keys
|
13 |
HF_API_URL_STT = "https://api-inference.huggingface.co/models/openai/whisper-base"
|
14 |
HF_API_URL_CONVERSATION = "https://api-inference.huggingface.co/models/facebook/blenderbot-400M-distill"
|
15 |
+
HF_API_KEY = os.getenv('HF_API_KEY') # Replace with your Hugging Face API key
|
16 |
|
17 |
# Parameters
|
18 |
silence_threshold = 0.01 # Silence threshold for audio detection
|