Spaces:
Running
Running
manavisrani07
commited on
Commit
·
f6b75a0
1
Parent(s):
299508b
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,12 @@ with gr.Blocks() as ui:
|
|
38 |
]
|
39 |
|
40 |
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
|
44 |
generate_btn.click(
|
45 |
generate,
|
|
|
38 |
]
|
39 |
|
40 |
|
41 |
+
process = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
42 |
+
|
43 |
+
if process.returncode == 0:
|
44 |
+
result.value = "results/output.mp4"
|
45 |
+
else:
|
46 |
+
result.value = "Error: Failed to generate video"
|
47 |
|
48 |
generate_btn.click(
|
49 |
generate,
|