Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
juppytt
/
shell
like
0
Runtime error
App
Files
Files
Community
444e806
shell
/
app.py
juppytt
x
444e806
over 1 year ago
raw
Copy download link
history
blame
No virus
228 Bytes
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()