Meet Radadiya commited on
Commit
513303e
·
1 Parent(s): a5bcd30

Fine Tune Output!

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -704,17 +704,6 @@ def render_sidebar():
704
  st.markdown('<div class="sidebar-item">', unsafe_allow_html=True)
705
  st.markdown('<div class="sidebar-title">Image Upload Section</div>', unsafe_allow_html=True)
706
 
707
- # Create a styled drop zone
708
- st.markdown(
709
- """
710
- <div class="drop-zone">
711
- <div class="drop-icon">📤</div>
712
- <p>Drag and drop file here</p>
713
- <p style="font-size: 0.8rem; color: #9ca3af;">or use the uploader below</p>
714
- </div>
715
- """,
716
- unsafe_allow_html=True
717
- )
718
 
719
  uploaded_file = st.file_uploader(
720
  "Select Medical Image",
@@ -733,17 +722,6 @@ def render_sidebar():
733
  use_container_width=True)
734
  st.markdown('</div>', unsafe_allow_html=True)
735
 
736
- # Styled analysis button
737
- if st.button("▶️ Initiate Analysis", use_container_width=True):
738
- with st.spinner("Processing image..."):
739
- # Use the selected API provider
740
- api_choice = 'groq' if api_provider == "Groq" else None
741
- report = generate_radiology_report(uploaded_file, api_choice)
742
-
743
- if report:
744
- st.session_state.analysis_result = report
745
- st.rerun()
746
- st.markdown('</div>', unsafe_allow_html=True)
747
 
748
  # ======================
749
  # APPLICATION ENTRYPOINT
 
704
  st.markdown('<div class="sidebar-item">', unsafe_allow_html=True)
705
  st.markdown('<div class="sidebar-title">Image Upload Section</div>', unsafe_allow_html=True)
706
 
 
 
 
 
 
 
 
 
 
 
 
707
 
708
  uploaded_file = st.file_uploader(
709
  "Select Medical Image",
 
722
  use_container_width=True)
723
  st.markdown('</div>', unsafe_allow_html=True)
724
 
 
 
 
 
 
 
 
 
 
 
 
725
 
726
  # ======================
727
  # APPLICATION ENTRYPOINT