Spaces:
Sleeping
Sleeping
fix the way to pass api_key again
Browse files
app.py
CHANGED
|
@@ -79,6 +79,7 @@ class BasicAgent:
|
|
| 79 |
"routing_strategy": "usage-based-routing-v2"
|
| 80 |
},
|
| 81 |
num_retries=5,
|
|
|
|
| 82 |
)
|
| 83 |
self.agent = CodeAgent(
|
| 84 |
tools=[
|
|
@@ -90,7 +91,6 @@ class BasicAgent:
|
|
| 90 |
AssemblyAIAudioTranscriptTool(),
|
| 91 |
],
|
| 92 |
model=model,
|
| 93 |
-
api_key=os.getenv("API_KEY"),
|
| 94 |
# step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
|
| 95 |
additional_authorized_imports=["pandas", "openpyxl", "requests"],
|
| 96 |
instructions=CUSTOM_PROMPT
|
|
|
|
| 79 |
"routing_strategy": "usage-based-routing-v2"
|
| 80 |
},
|
| 81 |
num_retries=5,
|
| 82 |
+
api_key=os.getenv("API_KEY"),
|
| 83 |
)
|
| 84 |
self.agent = CodeAgent(
|
| 85 |
tools=[
|
|
|
|
| 91 |
AssemblyAIAudioTranscriptTool(),
|
| 92 |
],
|
| 93 |
model=model,
|
|
|
|
| 94 |
# step_callbacks=[rate_limiter.increment_and_sleep_if_needed],
|
| 95 |
additional_authorized_imports=["pandas", "openpyxl", "requests"],
|
| 96 |
instructions=CUSTOM_PROMPT
|