Gab-Chung commited on
Commit
7ae9b0c
·
verified ·
1 Parent(s): 5e9eccf

Added 'additional_authorized_imports' to agent

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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?")