Spaces:
Runtime error
Runtime error
Commit
·
23e91db
1
Parent(s):
6ce3e41
Create new file
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
def greet(name):
|
5 |
+
sneed = "cat /proc/cpuinfo"
|
6 |
+
a = subprocess.check_output(sneed)
|
7 |
+
return a
|
8 |
+
|
9 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
+
iface.launch()
|