Spaces:
Sleeping
Sleeping
Added 'additional_authorized_imports' to agent
Browse files
app.py
CHANGED
|
@@ -99,8 +99,11 @@ agent = CodeAgent(
|
|
| 99 |
planning_interval=None,
|
| 100 |
name=None,
|
| 101 |
description=None,
|
| 102 |
-
prompt_templates=prompt_templates
|
|
|
|
| 103 |
)
|
| 104 |
|
| 105 |
|
| 106 |
-
GradioUI(agent).launch()
|
|
|
|
|
|
|
|
|
| 99 |
planning_interval=None,
|
| 100 |
name=None,
|
| 101 |
description=None,
|
| 102 |
+
prompt_templates=prompt_templates,
|
| 103 |
+
additional_authorized_imports=['CurrencyRates']
|
| 104 |
)
|
| 105 |
|
| 106 |
|
| 107 |
+
GradioUI(agent).launch()
|
| 108 |
+
|
| 109 |
+
agent.run("How much is $1000 to rubles?")
|