Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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])
|