danieldeng commited on
Commit
8a07ec1
·
verified ·
1 Parent(s): 0495919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -82,5 +82,7 @@ agent = CodeAgent(
82
  prompt_templates=prompt_templates
83
  )
84
 
 
 
85
 
86
- GradioUI(agent).launch()
 
82
  prompt_templates=prompt_templates
83
  )
84
 
85
+ current_dir = os.path.abspath(os.getcwd())
86
+ print(f"Allowed directory: {current_dir}")
87
 
88
+ GradioUI(agent).launch(allowed_paths=[current_dir])