Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -777,6 +777,9 @@ class PlanningReflectionAgent:
|
|
| 777 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 778 |
if not GROQ_API_KEY:
|
| 779 |
raise ValueError("GROQ_API_KEY not set!")
|
|
|
|
|
|
|
|
|
|
| 780 |
|
| 781 |
self.tools = defined_tools
|
| 782 |
|
|
|
|
| 777 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 778 |
if not GROQ_API_KEY:
|
| 779 |
raise ValueError("GROQ_API_KEY not set!")
|
| 780 |
+
HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 781 |
+
if not HUGGINGFACEHUB_API_TOKEN:
|
| 782 |
+
raise ValueError("HUGGINGFACEHUB_API_TOKEN secret is not set! Please add it to your Space secrets.")
|
| 783 |
|
| 784 |
self.tools = defined_tools
|
| 785 |
|