garyd1 commited on
Commit
a9d5b3e
·
verified ·
1 Parent(s): 65fceff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "your_huggingface_api_key" # Replace with your Hugging Face 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