Spaces:
Sleeping
Sleeping
CB commited on
Update streamlit_app.py
Browse files- streamlit_app.py +3 -3
streamlit_app.py
CHANGED
|
@@ -444,9 +444,9 @@ if generate_now and not st.session_state.get("busy"):
|
|
| 444 |
try:
|
| 445 |
uploaded = upload_video_sdk(upload_path)
|
| 446 |
except Exception as e:
|
| 447 |
-
st.session_state["last_error"] = f"Upload failed: {e}"
|
| 448 |
-
st.error("Upload failed.
|
| 449 |
-
|
| 450 |
|
| 451 |
try:
|
| 452 |
processing_placeholder = st.empty()
|
|
|
|
| 444 |
try:
|
| 445 |
uploaded = upload_video_sdk(upload_path)
|
| 446 |
except Exception as e:
|
| 447 |
+
st.session_state["last_error"] = f"Upload failed for {upload_path}: {e}\n{traceback.format_exc()}"
|
| 448 |
+
st.error(f"Upload failed: {e}. Check the error log for more details.")
|
| 449 |
+
return # Prevent further processing.
|
| 450 |
|
| 451 |
try:
|
| 452 |
processing_placeholder = st.empty()
|