Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
|
4 |
-
def
|
5 |
return subprocess.run(command, shell=True, text=True, capture_output=True)
|
6 |
|
7 |
-
iface = gr.Interface(fn=
|
8 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
|
4 |
+
def run(command):
|
5 |
return subprocess.run(command, shell=True, text=True, capture_output=True)
|
6 |
|
7 |
+
iface = gr.Interface(fn=run, inputs="text", outputs="text")
|
8 |
iface.launch()
|