cryogenic22 commited on
Commit
f5d1dad
·
verified ·
1 Parent(s): ed6b0e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def load_huggingface_secret():
15
  try:
16
  hf_api = HfApi()
17
  # Fetch the secret from Hugging Face
18
- secret = hf_api.get_secret('openai_api_key')
19
  return secret
20
  except Exception as e:
21
  st.error(f"Error loading secret from Hugging Face: {str(e)}")
 
15
  try:
16
  hf_api = HfApi()
17
  # Fetch the secret from Hugging Face
18
+ secret = hf_api.get_secret('OPENAI_API_KEY')
19
  return secret
20
  except Exception as e:
21
  st.error(f"Error loading secret from Hugging Face: {str(e)}")