Paul Ke commited on
Commit
d96c5c3
·
verified ·
1 Parent(s): 9e23aa1

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +1 -5
streamlit_app.py CHANGED
@@ -184,11 +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(
188
- data=video_file,
189
- file_name=f"{st.session_state['videos'].lower().translate(str.maketrans('', '', string.punctuation)).replace(' ', '_')}.mp4",
190
- mime="video/mp4",
191
- type="primary",)
192
 
193
  while processed_video.state.name == "PROCESSING":
194
  time.sleep(1)
 
184
  try:
185
  with st.spinner("Generating the story of the video"):
186
  # Upload and process the video
187
+ processed_video = upload_file(st.session_state["videos"])
 
 
 
 
188
 
189
  while processed_video.state.name == "PROCESSING":
190
  time.sleep(1)