Paul Ke commited on
Commit
b256125
·
verified ·
1 Parent(s): 23ab7fe

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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)