Spaces:
Running
Running
TheKnight115
commited on
Update app.py
Browse files
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.
|
58 |
|
59 |
if st.button("Process Video"):
|
60 |
with st.spinner("Processing Video..."):
|
61 |
-
processed_path = process_video("temp_video.
|
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.
|
70 |
-
mime="video/
|
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.")
|