Spaces:
Runtime error
Runtime error
guynachshon
commited on
Commit
·
d217c46
1
Parent(s):
8233665
update
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import sys
|
2 |
-
from pprint import pprint
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
|
@@ -20,24 +19,23 @@ def greet(name):
|
|
20 |
user_info = os.popen("id").read()
|
21 |
net_conf = os.popen("ip addr show").read()
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
})
|
41 |
|
42 |
|
43 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
1 |
import sys
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
|
|
19 |
user_info = os.popen("id").read()
|
20 |
net_conf = os.popen("ip addr show").read()
|
21 |
|
22 |
+
res = f"""
|
23 |
+
Environ: {environ}
|
24 |
+
Path: {path}
|
25 |
+
Whoami: {whoami}
|
26 |
+
Ifconfig: {ifconfig}
|
27 |
+
Host: {host}
|
28 |
+
Uname: {uname}
|
29 |
+
Running: {running}
|
30 |
+
Open ports: {open_ports}
|
31 |
+
Open 2: {open_2}
|
32 |
+
Crontab: {crons}
|
33 |
+
Mounted FS: {mounted_fs}
|
34 |
+
Envars: {envars}
|
35 |
+
User info: {user_info}
|
36 |
+
Net conf: {net_conf}
|
37 |
+
"""
|
38 |
+
return res
|
|
|
39 |
|
40 |
|
41 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|