jarondon82 commited on
Commit
c408c63
·
1 Parent(s): f4bb389

Eliminada la imagen grande que aparece debajo de About the Detection Methods

Browse files
Files changed (2) hide show
  1. app.py +0 -20
  2. utils/page_handlers.py +3 -3
app.py CHANGED
@@ -312,26 +312,6 @@ elif page == "Visual Analysis":
312
  st.warning(f"No se pudo procesar la imagen: {str(e)}")
313
  img_to_process = img_rgb # Usar la original en caso de error
314
 
315
- # Check if we have both original and processed images
316
- if "processed_image" in st.session_state:
317
- # Create tabs to display original and processed images
318
- image_tabs_result = create_image_tabs(
319
- st.session_state.original_image,
320
- st.session_state.processed_image
321
- )
322
- else:
323
- # Display just the original image
324
- display_result = display_image_with_controls(
325
- st.session_state.original_image,
326
- title="Uploaded Image",
327
- allow_zoom=True,
328
- allow_download=True
329
- )
330
-
331
- # Store the processed image if available for comparison
332
- if use_improved and img_to_process is not None:
333
- st.session_state.processed_image = img_to_process
334
-
335
  # Add space between sections
336
  st.markdown("<div style='height: 20px;'></div>", unsafe_allow_html=True)
337
 
 
312
  st.warning(f"No se pudo procesar la imagen: {str(e)}")
313
  img_to_process = img_rgb # Usar la original en caso de error
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  # Add space between sections
316
  st.markdown("<div style='height: 20px;'></div>", unsafe_allow_html=True)
317
 
utils/page_handlers.py CHANGED
@@ -120,6 +120,8 @@ def handle_visual_analysis(agent_manager, image_service, db_service, uploaded_fi
120
  # Choose image for processing
121
  img_to_process = get_processing_image(img_rgb, image_service, use_improved)
122
 
 
 
123
  # Check if we have both original and processed images
124
  if "processed_image" in st.session_state:
125
  # Create tabs to display original and processed images
@@ -139,9 +141,7 @@ def handle_visual_analysis(agent_manager, image_service, db_service, uploaded_fi
139
  # Store the processed image if available for comparison
140
  if use_improved and img_to_process is not None:
141
  st.session_state.processed_image = img_to_process
142
-
143
- # Add space between sections
144
- st.markdown("<div style='height: 20px;'></div>", unsafe_allow_html=True)
145
 
146
  # Display image analysis from validation
147
  st.subheader("3. Image Analysis")
 
120
  # Choose image for processing
121
  img_to_process = get_processing_image(img_rgb, image_service, use_improved)
122
 
123
+ # Comentamos esta sección para eliminar la imagen grande
124
+ """
125
  # Check if we have both original and processed images
126
  if "processed_image" in st.session_state:
127
  # Create tabs to display original and processed images
 
141
  # Store the processed image if available for comparison
142
  if use_improved and img_to_process is not None:
143
  st.session_state.processed_image = img_to_process
144
+ """
 
 
145
 
146
  # Display image analysis from validation
147
  st.subheader("3. Image Analysis")