Spaces:
Build error
Build error
Paul Ke commited on
Update streamlit_app.py
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
|
@@ -184,7 +184,7 @@ if st.button('Generate the story'):
|
|
| 184 |
try:
|
| 185 |
with st.spinner("Generating the story of the video"):
|
| 186 |
# Upload and process the video
|
| 187 |
-
processed_video = upload_file(video_file)
|
| 188 |
while processed_video.state.name == "PROCESSING":
|
| 189 |
time.sleep(1)
|
| 190 |
processed_video = get_file(processed_video.name)
|
|
|
|
| 184 |
try:
|
| 185 |
with st.spinner("Generating the story of the video"):
|
| 186 |
# Upload and process the video
|
| 187 |
+
processed_video = upload_file(video_file, mime="video/mp4",)
|
| 188 |
while processed_video.state.name == "PROCESSING":
|
| 189 |
time.sleep(1)
|
| 190 |
processed_video = get_file(processed_video.name)
|