saakshigupta commited on
Commit
edb0544
·
verified ·
1 Parent(s): 286126e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -287,9 +287,6 @@ with st.sidebar:
287
  else:
288
  st.success("✅ Vision LLM loaded")
289
 
290
- # Debug toggle
291
- st.session_state.debug = st.toggle("Enable Debug Mode", value=debug_mode, key="debug_toggle_sidebar_models")
292
-
293
  # Display model info
294
  st.info("Using Xception + deepfake-explainer-new models")
295
 
@@ -937,9 +934,8 @@ def main():
937
  )
938
  st.session_state.gradcam_caption = gradcam_caption
939
 
940
- # Display the caption directly here
941
- st.markdown("### GradCAM Analysis")
942
- st.markdown(gradcam_caption)
943
  except Exception as e:
944
  st.error(f"Error generating GradCAM: {str(e)}")
945
  import traceback
 
287
  else:
288
  st.success("✅ Vision LLM loaded")
289
 
 
 
 
290
  # Display model info
291
  st.info("Using Xception + deepfake-explainer-new models")
292
 
 
934
  )
935
  st.session_state.gradcam_caption = gradcam_caption
936
 
937
+ # Remove the display from Detection tab
938
+ # Keep only saving to session state for use in Image Captions tab
 
939
  except Exception as e:
940
  st.error(f"Error generating GradCAM: {str(e)}")
941
  import traceback