Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,15 +17,15 @@ if uploaded_file is not None:
|
|
| 17 |
video_bytes = video_file.read()
|
| 18 |
st.video(video_bytes)
|
| 19 |
|
| 20 |
-
with open(output, "rb") as file:
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
-
video_file = open(output, 'rb')
|
| 29 |
-
video_bytes = video_file.read()
|
| 30 |
-
st.video(video_bytes)
|
| 31 |
|
|
|
|
| 17 |
video_bytes = video_file.read()
|
| 18 |
st.video(video_bytes)
|
| 19 |
|
| 20 |
+
with open(output, "rb") as file:
|
| 21 |
+
btn = st.download_button(
|
| 22 |
+
label="Download video",
|
| 23 |
+
data=file,
|
| 24 |
+
file_name=output,
|
| 25 |
+
mime="video/mp4"
|
| 26 |
+
)
|
| 27 |
|
| 28 |
+
video_file = open(output, 'rb')
|
| 29 |
+
video_bytes = video_file.read()
|
| 30 |
+
st.video(video_bytes)
|
| 31 |
|