manavisrani07 commited on
Commit
0dc1c2d
1 Parent(s): 20c8814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -38,13 +38,8 @@ with gr.Blocks() as ui:
38
  "--outfile", "results/output.mp4",
39
  ]
40
 
41
-
42
- process = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
43
-
44
- if process.returncode == 0:
45
- result.value = "results/output.mp4"
46
- else:
47
- result.value = "Error: Failed to generate video"
48
 
49
  generate_btn.click(
50
  generate,
 
38
  "--outfile", "results/output.mp4",
39
  ]
40
 
41
+ call(cmd)
42
+ return "results/output.mp4"
 
 
 
 
 
43
 
44
  generate_btn.click(
45
  generate,