2f94ed2 444e806 2f94ed2
1
2
3
4
5
6
7
8
9
10
11
from langchain.tools import ShellTool import gradio as gr shell_tool = ShellTool() def run(commands): return shell_tool.run({"commands": commands}) demo = gr.Interface(fn=run, inputs="text", outputs="text") demo.launch()