Spaces:
Running
Running
Fix missing except block in preprocessing try/except
Browse files
app.py
CHANGED
@@ -952,6 +952,9 @@ with main_tab1:
|
|
952 |
# Remove trailing comma and space
|
953 |
meta_text = meta_text.rstrip(", ")
|
954 |
st.caption(meta_text)
|
|
|
|
|
|
|
955 |
|
956 |
# Empty container for progress indicators - will be filled during processing
|
957 |
progress_placeholder = st.empty()
|
|
|
952 |
# Remove trailing comma and space
|
953 |
meta_text = meta_text.rstrip(", ")
|
954 |
st.caption(meta_text)
|
955 |
+
except Exception as e:
|
956 |
+
st.error(f"Error in preprocessing: {str(e)}")
|
957 |
+
st.info("Try using grayscale preprocessing for PNG images with transparency")
|
958 |
|
959 |
# Empty container for progress indicators - will be filled during processing
|
960 |
progress_placeholder = st.empty()
|