Spaces:
Build error
Build error
PK commited on
Update streamlit_app.py
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -202,7 +202,7 @@ if st.button('Generate the story'):
|
|
| 202 |
processed_video = upload_file(st.session_state["videos"])
|
| 203 |
|
| 204 |
while processed_video.state.name == "PROCESSING":
|
| 205 |
-
time.sleep(
|
| 206 |
processed_video = get_file(processed_video.name)
|
| 207 |
|
| 208 |
# AI agent processing
|
|
@@ -212,5 +212,5 @@ if st.button('Generate the story'):
|
|
| 212 |
st.markdown(response.content)
|
| 213 |
|
| 214 |
except Exception as error:
|
| 215 |
-
st.
|
| 216 |
|
|
|
|
| 202 |
processed_video = upload_file(st.session_state["videos"])
|
| 203 |
|
| 204 |
while processed_video.state.name == "PROCESSING":
|
| 205 |
+
time.sleep(2)
|
| 206 |
processed_video = get_file(processed_video.name)
|
| 207 |
|
| 208 |
# AI agent processing
|
|
|
|
| 212 |
st.markdown(response.content)
|
| 213 |
|
| 214 |
except Exception as error:
|
| 215 |
+
st.error(f"An error occurred: {error}")
|
| 216 |
|