TheKnight115 commited on
Commit
cf95c26
·
verified ·
1 Parent(s): 7ecf8c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -54,11 +54,11 @@ elif option == "Video":
54
  f.write(uploaded_video.read())
55
 
56
  # Display the uploaded video
57
- st.video("temp_video.mp4")
58
 
59
  if st.button("Process Video"):
60
  with st.spinner("Processing Video..."):
61
- processed_path = process_video("temp_video.mp4", "alfont_com_arial-1.ttf")
62
  if processed_path and os.path.exists(processed_path):
63
  st.success("Video processed successfully!")
64
  st.video(processed_path)
@@ -66,8 +66,8 @@ elif option == "Video":
66
  st.download_button(
67
  label="📥 Download Processed Video",
68
  data=file,
69
- file_name="processed_video.mp4",
70
- mime="video/mp4"
71
  )
72
  else:
73
  st.error("Failed to process the video.")
 
54
  f.write(uploaded_video.read())
55
 
56
  # Display the uploaded video
57
+ st.video("temp_video.mov")
58
 
59
  if st.button("Process Video"):
60
  with st.spinner("Processing Video..."):
61
+ processed_path = process_video("temp_video.mov")
62
  if processed_path and os.path.exists(processed_path):
63
  st.success("Video processed successfully!")
64
  st.video(processed_path)
 
66
  st.download_button(
67
  label="📥 Download Processed Video",
68
  data=file,
69
+ file_name="processed_video.mov",
70
+ mime="video/mov"
71
  )
72
  else:
73
  st.error("Failed to process the video.")