Muhammad Taqi Raza
commited on
Commit
·
fc8ac82
1
Parent(s):
e758433
push
Browse files- gradio_app.py +5 -6
gradio_app.py
CHANGED
@@ -132,13 +132,12 @@ def inference(
|
|
132 |
"--controlnet_transformer_num_layers", str(controlnet_transformer_num_layers)
|
133 |
]
|
134 |
try:
|
135 |
-
result = subprocess.run(command, capture_output=True, text=True)
|
|
|
136 |
except subprocess.CalledProcessError as e:
|
137 |
-
logs = f"❌ Inference
|
138 |
-
|
139 |
-
|
140 |
-
video_output = f"{out_dir}/00000_{seed}_out.mp4"
|
141 |
-
return video_output if os.path.exists(video_output) else None, logs
|
142 |
|
143 |
|
144 |
# -----------------------------
|
|
|
132 |
"--controlnet_transformer_num_layers", str(controlnet_transformer_num_layers)
|
133 |
]
|
134 |
try:
|
135 |
+
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
136 |
+
logs = result.stdout
|
137 |
except subprocess.CalledProcessError as e:
|
138 |
+
logs = f"❌ Step 2 Inference Failed:\nSTDERR:\n{e.stderr}\nSTDOUT:\n{e.stdout}"
|
139 |
+
return None, logs
|
140 |
+
|
|
|
|
|
141 |
|
142 |
|
143 |
# -----------------------------
|