Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
| 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)}")
|