Spaces:
Runtime error
Runtime error
added additional authorized import of datetime
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
2 |
import datetime
|
|
|
3 |
import requests
|
4 |
import pytz
|
5 |
import yaml
|
@@ -86,7 +87,8 @@ agent = CodeAgent(
|
|
86 |
planning_interval=None,
|
87 |
name=None,
|
88 |
description=None,
|
89 |
-
prompt_templates=prompt_templates
|
|
|
90 |
)
|
91 |
|
92 |
GradioUI(agent).launch()
|
|
|
1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
2 |
import datetime
|
3 |
+
import time
|
4 |
import requests
|
5 |
import pytz
|
6 |
import yaml
|
|
|
87 |
planning_interval=None,
|
88 |
name=None,
|
89 |
description=None,
|
90 |
+
prompt_templates=prompt_templates,
|
91 |
+
additional_authorized_imports=['datetime']
|
92 |
)
|
93 |
|
94 |
GradioUI(agent).launch()
|