freemt
commited on
Commit
·
0bf7d6b
1
Parent(s):
5ce6708
Update
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ import gradio as gr
|
|
5 |
|
6 |
def greet(name):
|
7 |
try:
|
8 |
-
# out = subprocess.check_output(["nvidia-smi", "-L"], encoding='utf8')
|
9 |
out = sp.check_output(split(name), encoding='utf8')
|
10 |
except Exception as e:
|
11 |
out = str(e)
|
@@ -13,5 +12,6 @@ def greet(name):
|
|
13 |
return f"[out: {out}]"
|
14 |
|
15 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
16 |
# iface.launch(share=True, debug=True)
|
17 |
-
iface.launch(debug=True)
|
|
|
5 |
|
6 |
def greet(name):
|
7 |
try:
|
|
|
8 |
out = sp.check_output(split(name), encoding='utf8')
|
9 |
except Exception as e:
|
10 |
out = str(e)
|
|
|
12 |
return f"[out: {out}]"
|
13 |
|
14 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
15 |
+
|
16 |
# iface.launch(share=True, debug=True)
|
17 |
+
iface.launch(debug=True)
|