pavanmutha commited on
Commit
4b4c2f9
·
verified ·
1 Parent(s): 0e6978b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -52,7 +52,7 @@ additional_notes = "Please note: Perform a comprehensive analysis including visu
52
  agent = CodeAgent(
53
  tools=[],
54
  model=model,
55
- additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn", "os"]
56
  )
57
 
58
 
@@ -64,6 +64,9 @@ def run_agent(_):
64
  import os
65
  from PIL import Image
66
 
 
 
 
67
  if df_global is None:
68
  return "Please upload a file first.", []
69
 
 
52
  agent = CodeAgent(
53
  tools=[],
54
  model=model,
55
+ additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn", "os", "json"]
56
  )
57
 
58
 
 
64
  import os
65
  from PIL import Image
66
 
67
+ os.makedirs("figures", exist_ok=True) # Add this just before loading images
68
+
69
+
70
  if df_global is None:
71
  return "Please upload a file first.", []
72