Spaces:
Sleeping
Sleeping
Meet Radadiya
commited on
Commit
·
92f89a4
1
Parent(s):
b1c57aa
Ui changes
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.
|
536 |
|
537 |
2. **FINDINGS**:
|
538 |
- Provide detailed observations from the MRI report, including:
|
@@ -589,7 +589,7 @@ def generate_radiology_report(uploaded_file, api_choice='groq'):
|
|
589 |
# ======================
|
590 |
def display_animated_logo():
|
591 |
"""Display an animated medical logo"""
|
592 |
-
logo_b64 = encode_logo("
|
593 |
|
594 |
# If logo file doesn't exist, use the placeholder from encode_logo
|
595 |
st.markdown(
|
@@ -702,7 +702,7 @@ def render_sidebar():
|
|
702 |
st.session_state.uploaded_file = uploaded_file # Store uploaded file in session state
|
703 |
|
704 |
# Display image with a styled container
|
705 |
-
st.markdown('<div class="card">', unsafe_allow_html=True)
|
706 |
st.image(Image.open(uploaded_file),
|
707 |
caption="Uploaded Medical Image",
|
708 |
use_container_width=True)
|
|
|
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:
|
|
|
589 |
# ======================
|
590 |
def display_animated_logo():
|
591 |
"""Display an animated medical logo"""
|
592 |
+
logo_b64 = encode_logo("\src\radiology.png")
|
593 |
|
594 |
# If logo file doesn't exist, use the placeholder from encode_logo
|
595 |
st.markdown(
|
|
|
702 |
st.session_state.uploaded_file = uploaded_file # Store uploaded file in session state
|
703 |
|
704 |
# Display image with a styled container
|
705 |
+
# st.markdown('<div class="card">', unsafe_allow_html=True)
|
706 |
st.image(Image.open(uploaded_file),
|
707 |
caption="Uploaded Medical Image",
|
708 |
use_container_width=True)
|