Spaces:
Sleeping
Sleeping
Meet Radadiya
commited on
Commit
·
3eb6244
1
Parent(s):
92f89a4
Refineing Output
Browse files
app.py
CHANGED
@@ -532,7 +532,7 @@ def generate_radiology_report_groq(uploaded_file, client):
|
|
532 |
{"type": "text", "text": (
|
533 |
"""As a radiologist, analyze the following MRI report and provide a comprehensive report structured as follows:
|
534 |
|
535 |
-
1. DIAGNOSIS
|
536 |
|
537 |
2. **FINDINGS**:
|
538 |
- Provide detailed observations from the MRI report, including:
|
@@ -709,7 +709,6 @@ def render_sidebar():
|
|
709 |
st.markdown('</div>', unsafe_allow_html=True)
|
710 |
|
711 |
if st.button("▶️ Initiate Analysis", use_container_width=True):
|
712 |
-
with st.spinner("Processing image..."):
|
713 |
# Use the selected API provider
|
714 |
api_choice = 'groq'
|
715 |
report = generate_radiology_report(uploaded_file, api_choice)
|
|
|
532 |
{"type": "text", "text": (
|
533 |
"""As a radiologist, analyze the following MRI report and provide a comprehensive report structured as follows:
|
534 |
|
535 |
+
1. **DIAGNOSIS**: Clearly state the primary diagnosis, including dimensions where applicable (e.g., if a tumor is present). Use specific anatomical terms relevant to the body part being examined.
|
536 |
|
537 |
2. **FINDINGS**:
|
538 |
- Provide detailed observations from the MRI report, including:
|
|
|
709 |
st.markdown('</div>', unsafe_allow_html=True)
|
710 |
|
711 |
if st.button("▶️ Initiate Analysis", use_container_width=True):
|
|
|
712 |
# Use the selected API provider
|
713 |
api_choice = 'groq'
|
714 |
report = generate_radiology_report(uploaded_file, api_choice)
|