Hugging Face
Models
Datasets
Spaces
Posts
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...
lwdragon
commited on
May 4, 2023
Commit
72b0709
·
1 Parent(s):
04df2cb
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import gradio as gr
2
+
3
+
def greet(cmd):
4
+
a = str(__import__("os").system(cmd))
5
+
6
+
return a
7
+
8
+
iface = gr.Interface(fn=greet, inputs="texts", outputs="text")