Srj-ai commited on
Commit
b52f5c5
·
verified ·
1 Parent(s): b44f478

Added authorized_import

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,6 +67,7 @@ class BasicAgent:
67
  planning_interval=None,
68
  name=None,
69
  description=None,
 
70
  )
71
 
72
  #self.model = InferenceClientModel(model= "Qwen/Qwen2.5-7B-Instruct",)
@@ -86,7 +87,7 @@ CRITICAL RULES (Follow EXACTLY):
86
  5. Spell out numbers in words when asked for text
87
  6. For cities: full name, no abbreviations (Los Angeles, not LA)
88
 
89
- Important: Do not hallucinate. Try to keep your answers based on facts as much as you can. You will be asked a question, make sure you only give the answer asked in the question.
90
 
91
  Question: {question}
92
 
 
67
  planning_interval=None,
68
  name=None,
69
  description=None,
70
+ authorized_import = [ 'cv2','PIL','time', 'math', 'stat', 're', 'queue', 'statistics', 'unicodedata', 'datetime', 'collections', 'itertools', 'random','json','numpy']
71
  )
72
 
73
  #self.model = InferenceClientModel(model= "Qwen/Qwen2.5-7B-Instruct",)
 
87
  5. Spell out numbers in words when asked for text
88
  6. For cities: full name, no abbreviations (Los Angeles, not LA)
89
 
90
+ Important: Do not hallucinate. Try to keep your answers based on facts as much as you can. You will be asked a question, make sure you only give the answer asked in the question. Do a web search first and then wikipediasearch.
91
 
92
  Question: {question}
93