Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import json
|
|
| 12 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
| 13 |
|
| 14 |
# Set the OpenAI API Key securely (from Hugging Face secrets)
|
| 15 |
-
OPENAI_API_KEY = st.secrets["
|
| 16 |
|
| 17 |
# API Call Limits (To Protect Against Abuse)
|
| 18 |
MAX_REQUESTS_PER_SESSION = 3 # Maximum API calls per user session
|
|
|
|
| 12 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
| 13 |
|
| 14 |
# Set the OpenAI API Key securely (from Hugging Face secrets)
|
| 15 |
+
OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
|
| 16 |
|
| 17 |
# API Call Limits (To Protect Against Abuse)
|
| 18 |
MAX_REQUESTS_PER_SESSION = 3 # Maximum API calls per user session
|