Muhammad Taqi Raza
commited on
Commit
·
47f4b64
1
Parent(s):
8eeb1c7
out put video path
Browse files- gradio_app.py +4 -1
gradio_app.py
CHANGED
@@ -136,7 +136,10 @@ def inference(
|
|
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 |
-
|
|
|
|
|
|
|
140 |
|
141 |
|
142 |
|
|
|
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 |
+
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 |
|
145 |
|