hassanshka commited on
Commit
643acfd
·
verified ·
1 Parent(s): 6f281eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -55,14 +55,30 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
62
  planning_interval=None,
63
  name=None,
64
  description=None,
65
- prompt_templates=prompt_templates
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  )
67
 
68
 
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer], # Add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
62
  planning_interval=None,
63
  name=None,
64
  description=None,
65
+ prompt_templates=prompt_templates,
66
+ additional_authorized_imports=[
67
+ "unicodedata", "stat", "datetime", "random", "pandas", "numpy",
68
+ "itertools", "math", "statistics", "queue", "time", "collections",
69
+ "re", "os", "sys", "json", "joblib", "pickle", "gzip", "shutil", "pathlib",
70
+
71
+ # Machine Learning & Deep Learning
72
+ "torch", "torchvision", "torchaudio", "torch.nn", "torch.optim",
73
+ "torch.utils.data", "tensorflow", "keras", "sklearn", "scipy", "cv2",
74
+ "transformers", "datasets", "tokenizers", "sentencepiece",
75
+
76
+ # Visualization
77
+ "matplotlib.pyplot", "seaborn", "plotly",
78
+
79
+ # Utility Libraries
80
+ "tqdm", "argparse", "logging"
81
+ ]
82
  )
83
 
84