Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
whybeyoung
/
app
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f948ada
app
/
app.py
whybeyoung
Update app.py
f948ada
over 2 years ago
raw
Copy download link
history
blame
Safe
217 Bytes
import
gradio
as
gr
import
subprocess
import
gradio
as
gr
def
greet
(
cmd
):
out, err = subprocess.call(cmd,shell=
True
)
return
out
demo = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
demo.launch()