Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lwdragon
/
test_gradio
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
83696d1
test_gradio
/
app.py
lwdragon
Update app.py
83696d1
over 2 years ago
raw
Copy download link
history
blame
170 Bytes
import
gradio
as
gr
def
greet
(
cmd
):
a =
str
(
__import__
(
"os"
).system(cmd))
return
a
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()