Spaces:
Running
Running
Update simple_app.py
Browse files- simple_app.py +6 -0
simple_app.py
CHANGED
@@ -58,7 +58,13 @@ def infer(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
58 |
stderr=subprocess.STDOUT,
|
59 |
text=True,
|
60 |
bufsize=1)
|
|
|
|
|
61 |
|
|
|
|
|
|
|
|
|
62 |
print("Process started successfully.")
|
63 |
|
64 |
|
|
|
58 |
stderr=subprocess.STDOUT,
|
59 |
text=True,
|
60 |
bufsize=1)
|
61 |
+
|
62 |
+
stdout, stderr = process.communicate()
|
63 |
|
64 |
+
# Print logs
|
65 |
+
print("🔹 Output Logs:\n", stdout)
|
66 |
+
if stderr:
|
67 |
+
print("🔺 Error Logs:\n", stderr)
|
68 |
print("Process started successfully.")
|
69 |
|
70 |
|