app.py
CHANGED
@@ -4,7 +4,7 @@ shell_tool = ShellTool()
|
|
4 |
|
5 |
|
6 |
def run(commands):
|
7 |
-
return
|
8 |
|
9 |
demo = gr.Interface(fn=run, inputs="text", outputs="text")
|
10 |
|
|
|
4 |
|
5 |
|
6 |
def run(commands):
|
7 |
+
return shell_tool.run({"commands": commands})
|
8 |
|
9 |
demo = gr.Interface(fn=run, inputs="text", outputs="text")
|
10 |
|