Meet Radadiya commited on
Commit
95c9bdc
·
1 Parent(s): 5e16a3d

Fine Tune Output!

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -687,12 +687,6 @@ def render_sidebar():
687
  st.markdown('<div class="sidebar-item">', unsafe_allow_html=True)
688
  st.markdown('<div class="sidebar-title">API Configuration</div>', unsafe_allow_html=True)
689
 
690
- # API provider selection
691
- api_provider = st.radio(
692
- "Select AI Provider",
693
- options=["Groq"],
694
- index=0, # Default to Groq
695
- )
696
 
697
 
698
  st.markdown('</div>', unsafe_allow_html=True)
@@ -719,6 +713,17 @@ def render_sidebar():
719
  use_container_width=True)
720
  st.markdown('</div>', unsafe_allow_html=True)
721
 
 
 
 
 
 
 
 
 
 
 
 
722
 
723
  # ======================
724
  # APPLICATION ENTRYPOINT
 
687
  st.markdown('<div class="sidebar-item">', unsafe_allow_html=True)
688
  st.markdown('<div class="sidebar-title">API Configuration</div>', unsafe_allow_html=True)
689
 
 
 
 
 
 
 
690
 
691
 
692
  st.markdown('</div>', unsafe_allow_html=True)
 
713
  use_container_width=True)
714
  st.markdown('</div>', unsafe_allow_html=True)
715
 
716
+ if st.button("▶️ Initiate Analysis", use_container_width=True):
717
+ with st.spinner("Processing image..."):
718
+ # Use the selected API provider
719
+ api_choice = 'groq'
720
+ report = generate_radiology_report(uploaded_file, api_choice)
721
+
722
+ if report:
723
+ st.session_state.analysis_result = report
724
+ st.rerun()
725
+ st.markdown('</div>', unsafe_allow_html=True)
726
+
727
 
728
  # ======================
729
  # APPLICATION ENTRYPOINT