Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- __pycache__/app.cpython-312.pyc +0 -0
- app.py +8 -1
__pycache__/app.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-312.pyc and b/__pycache__/app.cpython-312.pyc differ
|
|
|
app.py
CHANGED
|
@@ -74,7 +74,14 @@ def truncate_history(history, max_messages=5):
|
|
| 74 |
return history[-max_messages:]
|
| 75 |
|
| 76 |
# Log required secrets reminder
|
| 77 |
-
required_secrets = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
logger.info("=== Space Secrets Requirement Reminder ===")
|
| 79 |
for secret in required_secrets:
|
| 80 |
if os.environ.get(secret):
|
|
|
|
| 74 |
return history[-max_messages:]
|
| 75 |
|
| 76 |
# Log required secrets reminder
|
| 77 |
+
required_secrets = [
|
| 78 |
+
"BLABLADOR_API_KEY",
|
| 79 |
+
"GITHUB_TOKEN",
|
| 80 |
+
"JULES_API_KEY",
|
| 81 |
+
"CONTEXTSTREAM_API_KEY",
|
| 82 |
+
"HF_TOKEN",
|
| 83 |
+
"HF_PROFILE"
|
| 84 |
+
]
|
| 85 |
logger.info("=== Space Secrets Requirement Reminder ===")
|
| 86 |
for secret in required_secrets:
|
| 87 |
if os.environ.get(secret):
|