Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
|
6 |
|
7 |
def run():
|
8 |
-
process = subprocess.Popen(
|
9 |
logs = ""
|
10 |
for line in iter(process.stdout.readline, b""):
|
11 |
logs += "\n" + line.decode
|
|
|
5 |
|
6 |
|
7 |
def run():
|
8 |
+
process = subprocess.Popen(["python", "run.py"], stdout=subprocess.PIPE)
|
9 |
logs = ""
|
10 |
for line in iter(process.stdout.readline, b""):
|
11 |
logs += "\n" + line.decode
|