Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
4c3abf9
1
Parent(s):
57c2b5a
Fix: Expand allowed commands for hf-space-local node (fixes 403 error)
Browse files
app.py
CHANGED
|
@@ -69,7 +69,14 @@ def start_local_node():
|
|
| 69 |
root_dir=Path.cwd(),
|
| 70 |
display_name="Local Node (Demo)",
|
| 71 |
tags=["local", "demo"],
|
| 72 |
-
allowed_commands=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
sync_targets={}
|
| 74 |
)
|
| 75 |
|
|
|
|
| 69 |
root_dir=Path.cwd(),
|
| 70 |
display_name="Local Node (Demo)",
|
| 71 |
tags=["local", "demo"],
|
| 72 |
+
allowed_commands=[
|
| 73 |
+
"/bin/sh", "/bin/bash", # Shell access
|
| 74 |
+
"ls", "cat", "echo", "grep", "head", "tail", "pwd", "whoami",
|
| 75 |
+
"mkdir", "touch", "rm", "cp", "mv", # File operations
|
| 76 |
+
"python", "python3", "pip", "pip3", # Python
|
| 77 |
+
"curl", "wget", "git", # Network/Dev tools
|
| 78 |
+
"df", "du", "free", "top", "ps" # System info
|
| 79 |
+
],
|
| 80 |
sync_targets={}
|
| 81 |
)
|
| 82 |
|