Spaces:
Sleeping
Sleeping
Fernando Moreno
commited on
Commit
·
b240ed0
1
Parent(s):
4ebcec2
Improved patient information section and simplified single timepoint analysis
Browse files
app.py
CHANGED
@@ -257,6 +257,19 @@ def main():
|
|
257 |
|
258 |
# Patient Information Section
|
259 |
st.markdown("### Patient Information")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
patient_file = st.file_uploader("Upload Patient Information (PDF/Text)", type=['pdf', 'txt'])
|
261 |
patient_data = None
|
262 |
if patient_file:
|
@@ -270,7 +283,6 @@ def main():
|
|
270 |
|
271 |
if analysis_type == "Single Timepoint":
|
272 |
st.markdown('<div class="upload-section">', unsafe_allow_html=True)
|
273 |
-
scan_date = st.date_input("Scan Date")
|
274 |
uploaded_files = st.file_uploader("Upload Pentacam Scans", type=['png', 'jpg', 'jpeg'], accept_multiple_files=True)
|
275 |
|
276 |
if uploaded_files:
|
@@ -290,7 +302,7 @@ def main():
|
|
290 |
with st.spinner("Analyzing..."):
|
291 |
analysis = analyze_timepoint(
|
292 |
images,
|
293 |
-
|
294 |
patient_data.get('raw_text') if patient_data else None
|
295 |
)
|
296 |
st.markdown("### Analysis Results")
|
|
|
257 |
|
258 |
# Patient Information Section
|
259 |
st.markdown("### Patient Information")
|
260 |
+
st.markdown("""
|
261 |
+
<div class="info-box">
|
262 |
+
Upload patient information including:
|
263 |
+
• Clinical history
|
264 |
+
• Previous diagnoses
|
265 |
+
• Current symptoms
|
266 |
+
• Family history
|
267 |
+
• Previous treatments
|
268 |
+
• Current medications
|
269 |
+
• Other relevant medical conditions
|
270 |
+
</div>
|
271 |
+
""", unsafe_allow_html=True)
|
272 |
+
|
273 |
patient_file = st.file_uploader("Upload Patient Information (PDF/Text)", type=['pdf', 'txt'])
|
274 |
patient_data = None
|
275 |
if patient_file:
|
|
|
283 |
|
284 |
if analysis_type == "Single Timepoint":
|
285 |
st.markdown('<div class="upload-section">', unsafe_allow_html=True)
|
|
|
286 |
uploaded_files = st.file_uploader("Upload Pentacam Scans", type=['png', 'jpg', 'jpeg'], accept_multiple_files=True)
|
287 |
|
288 |
if uploaded_files:
|
|
|
302 |
with st.spinner("Analyzing..."):
|
303 |
analysis = analyze_timepoint(
|
304 |
images,
|
305 |
+
datetime.now().strftime("%Y-%m-%d"), # Current date for reference
|
306 |
patient_data.get('raw_text') if patient_data else None
|
307 |
)
|
308 |
st.markdown("### Analysis Results")
|