Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ try:
|
|
| 20 |
api_base=os.getenv("LLM_BASSE_URL"),
|
| 21 |
api_key=os.getenv("LLM_API_TOKEN"),
|
| 22 |
)
|
| 23 |
-
agent = CodeAgent(tools=[*tools], model=model,
|
| 24 |
|
| 25 |
demo = gr.ChatInterface(
|
| 26 |
fn=lambda message, history: str(agent.run(message)),
|
|
|
|
| 20 |
api_base=os.getenv("LLM_BASSE_URL"),
|
| 21 |
api_key=os.getenv("LLM_API_TOKEN"),
|
| 22 |
)
|
| 23 |
+
agent = CodeAgent(tools=[*tools], model=model, instructions=system_prompt, additional_authorized_imports=["json", "ast", "urllib", "base64"])
|
| 24 |
|
| 25 |
demo = gr.ChatInterface(
|
| 26 |
fn=lambda message, history: str(agent.run(message)),
|