Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ class BasicAgent:
|
|
| 18 |
# Check environment variables
|
| 19 |
print("=== ENVIRONMENT VARIABLES ===")
|
| 20 |
for key in sorted(os.environ.keys()):
|
| 21 |
-
if any(term in key.upper() for term in ['OPENAI', 'API_KEY', 'TOKEN'
|
| 22 |
value = os.environ[key]
|
| 23 |
print(f"{key}: {value[:10] if value else 'None'}...")
|
| 24 |
|
|
@@ -183,9 +183,8 @@ with gr.Blocks() as demo:
|
|
| 183 |
## Setup Instructions:
|
| 184 |
1. Get an OpenAI API key from https://platform.openai.com/api-keys
|
| 185 |
2. Add it as `OPENAI_API_KEY` in your Hugging Face Space secrets
|
| 186 |
-
3.
|
| 187 |
-
4.
|
| 188 |
-
5. Click **Run Evaluation & Submit All Answers**
|
| 189 |
|
| 190 |
## Current Configuration:
|
| 191 |
- Model: GPT-3.5-turbo (change to GPT-4 in agent.py if you have access)
|
|
|
|
| 18 |
# Check environment variables
|
| 19 |
print("=== ENVIRONMENT VARIABLES ===")
|
| 20 |
for key in sorted(os.environ.keys()):
|
| 21 |
+
if any(term in key.upper() for term in ['OPENAI', 'API_KEY', 'TOKEN']):
|
| 22 |
value = os.environ[key]
|
| 23 |
print(f"{key}: {value[:10] if value else 'None'}...")
|
| 24 |
|
|
|
|
| 183 |
## Setup Instructions:
|
| 184 |
1. Get an OpenAI API key from https://platform.openai.com/api-keys
|
| 185 |
2. Add it as `OPENAI_API_KEY` in your Hugging Face Space secrets
|
| 186 |
+
3. Log in with the button below
|
| 187 |
+
4. Click **Run Evaluation & Submit All Answers**
|
|
|
|
| 188 |
|
| 189 |
## Current Configuration:
|
| 190 |
- Model: GPT-3.5-turbo (change to GPT-4 in agent.py if you have access)
|