rahul5035 commited on
Commit
d29eacb
1 Parent(s): c4ab5df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -31,7 +31,9 @@ if st.button("submit"):
31
  input_path=f"{output_dir}/{title}.mp4"
32
  output_path=f"test_videos/{title}_output.mp4"
33
  pred.prediction(input_path,output_path ,frames_needed)
 
 
34
 
35
- st.video(output_path)
36
 
37
 
 
31
  input_path=f"{output_dir}/{title}.mp4"
32
  output_path=f"test_videos/{title}_output.mp4"
33
  pred.prediction(input_path,output_path ,frames_needed)
34
+ video_file = open(output_path, 'rb')
35
+ video_bytes = video_file.read()
36
 
37
+ st.video(video_bytes)
38
 
39