Spaces:
Build error
Build error
Paul Ke commited on
Update streamlit_app.py
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -180,13 +180,13 @@ if st.session_state["videos"]:
|
|
| 180 |
analysis_prompt = st.sidebar.text_area("Enter analysis")
|
| 181 |
|
| 182 |
if st.button('Generate the story'):
|
| 183 |
-
if not
|
| 184 |
st.sidebar.warning('PLEASE ENTER A VALID URL')
|
| 185 |
else:
|
| 186 |
# Download the video
|
| 187 |
with st.spinner("Retrieving video..."):
|
| 188 |
temp_video_path = os.path.join(tempfile.gettempdir(), 'video.mp4')
|
| 189 |
-
success, message = download_video(
|
| 190 |
|
| 191 |
if not success:
|
| 192 |
st.sidebar.error(f"Error downloading video: {message}")
|
|
|
|
| 180 |
analysis_prompt = st.sidebar.text_area("Enter analysis")
|
| 181 |
|
| 182 |
if st.button('Generate the story'):
|
| 183 |
+
if not url:
|
| 184 |
st.sidebar.warning('PLEASE ENTER A VALID URL')
|
| 185 |
else:
|
| 186 |
# Download the video
|
| 187 |
with st.spinner("Retrieving video..."):
|
| 188 |
temp_video_path = os.path.join(tempfile.gettempdir(), 'video.mp4')
|
| 189 |
+
success, message = download_video(url, temp_video_path)
|
| 190 |
|
| 191 |
if not success:
|
| 192 |
st.sidebar.error(f"Error downloading video: {message}")
|