Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,5 +75,14 @@ if uploaded_file is not None:
|
|
75 |
# Display the reversed video
|
76 |
st.success("Video reversed successfully!")
|
77 |
st.video(output_video_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
except Exception as e:
|
79 |
st.error(f"An error occurred: {e}")
|
|
|
75 |
# Display the reversed video
|
76 |
st.success("Video reversed successfully!")
|
77 |
st.video(output_video_path)
|
78 |
+
|
79 |
+
# Provide a download button for the reversed video
|
80 |
+
with open(output_video_path, "rb") as file:
|
81 |
+
st.download_button(
|
82 |
+
label="Download Reversed Video",
|
83 |
+
data=file,
|
84 |
+
file_name="reversed_video.mp4",
|
85 |
+
mime="video/mp4"
|
86 |
+
)
|
87 |
except Exception as e:
|
88 |
st.error(f"An error occurred: {e}")
|