Spaces:
Running
Running
mohdelgaar
commited on
Commit
•
db283f8
1
Parent(s):
438cd32
update labels
Browse files- app.py +3 -3
- demo_assets.py +7 -7
app.py
CHANGED
@@ -537,7 +537,7 @@ with gr.Blocks(head=shortcut_js,
|
|
537 |
title='MedDecXtract', css=css) as demo:
|
538 |
gr.Image('assets/logo.png', height=100, container=False, show_download_button=False)
|
539 |
gr.Markdown(title)
|
540 |
-
with gr.Tab("
|
541 |
gr.Markdown(label_desc)
|
542 |
with gr.Row():
|
543 |
with gr.Column():
|
@@ -551,7 +551,7 @@ with gr.Blocks(head=shortcut_js,
|
|
551 |
gr.Markdown("## Labeled Summary or Note"),
|
552 |
text_out = gr.Highlight(label="", combine_adjacent=True, show_legend=False, color_map=color_map)
|
553 |
gr.Examples(text_examples, inputs=text_input)
|
554 |
-
with gr.Tab("Patient
|
555 |
gr.Markdown(vis_desc)
|
556 |
with gr.Column():
|
557 |
sum_inputs = [gr.Text(label='Clinical Note 1', elem_classes='text-limit')]
|
@@ -578,7 +578,7 @@ with gr.Blocks(head=shortcut_js,
|
|
578 |
summary_button = gr.Button("Generate Summary")
|
579 |
with gr.Accordion('Summary'):
|
580 |
summary_output = gr.Markdown(elem_id='sum-out') #gr.Textbox(label="Summary")
|
581 |
-
with gr.Tab("Interactive
|
582 |
gr.Markdown(annotator_desc)
|
583 |
with gr.Row():
|
584 |
with gr.Column():
|
|
|
537 |
title='MedDecXtract', css=css) as demo:
|
538 |
gr.Image('assets/logo.png', height=100, container=False, show_download_button=False)
|
539 |
gr.Markdown(title)
|
540 |
+
with gr.Tab("Decision Extraction & Classification"):
|
541 |
gr.Markdown(label_desc)
|
542 |
with gr.Row():
|
543 |
with gr.Column():
|
|
|
551 |
gr.Markdown("## Labeled Summary or Note"),
|
552 |
text_out = gr.Highlight(label="", combine_adjacent=True, show_legend=False, color_map=color_map)
|
553 |
gr.Examples(text_examples, inputs=text_input)
|
554 |
+
with gr.Tab("Patient Visualization"):
|
555 |
gr.Markdown(vis_desc)
|
556 |
with gr.Column():
|
557 |
sum_inputs = [gr.Text(label='Clinical Note 1', elem_classes='text-limit')]
|
|
|
578 |
summary_button = gr.Button("Generate Summary")
|
579 |
with gr.Accordion('Summary'):
|
580 |
summary_output = gr.Markdown(elem_id='sum-out') #gr.Textbox(label="Summary")
|
581 |
+
with gr.Tab("Interactive Narrative Annotator"):
|
582 |
gr.Markdown(annotator_desc)
|
583 |
with gr.Row():
|
584 |
with gr.Column():
|
demo_assets.py
CHANGED
@@ -56,7 +56,7 @@ color_map = {cat: colors[i] for i,cat in enumerate(categories)}
|
|
56 |
|
57 |
|
58 |
annotator_desc = """
|
59 |
-
## Interactive
|
60 |
|
61 |
This tool allows you to manually annotate medical text for detailed analysis and model training. Follow these steps:
|
62 |
|
@@ -82,7 +82,7 @@ This tool allows you to manually annotate medical text for detailed analysis and
|
|
82 |
"""
|
83 |
|
84 |
label_desc = """
|
85 |
-
##
|
86 |
|
87 |
This tool allows you to quickly identify and categorize key clinical decisions within a single clinical note.
|
88 |
|
@@ -93,7 +93,7 @@ This tool allows you to quickly identify and categorize key clinical decisions w
|
|
93 |
This provides a simplified overview of the patient's history and key decisions at a glance.
|
94 |
"""
|
95 |
vis_desc = """
|
96 |
-
## Patient
|
97 |
|
98 |
This tool allows you to visualize the timeline of clinical decisions across multiple clinical notes for a single patient.
|
99 |
|
@@ -114,9 +114,9 @@ title = """
|
|
114 |
<h1 style="text-align: center;">Medical Decisions Extraction, Visualization, and Annotation</h1>
|
115 |
|
116 |
<p style="font-size:1.2em;">This application offers three interactive tools for working with clinical text data:</p>
|
117 |
-
<p style="font-size:1.2em;">1. <b>
|
118 |
-
2. <b>Patient
|
119 |
-
3. <b>Interactive
|
120 |
"""
|
121 |
|
122 |
desc = '### Decision Categories\n'
|
@@ -217,4 +217,4 @@ body {
|
|
217 |
--section-text-size: 16px;
|
218 |
--input-background: --neutral-50;
|
219 |
}
|
220 |
-
"""
|
|
|
56 |
|
57 |
|
58 |
annotator_desc = """
|
59 |
+
## Interactive Narrative Annotator
|
60 |
|
61 |
This tool allows you to manually annotate medical text for detailed analysis and model training. Follow these steps:
|
62 |
|
|
|
82 |
"""
|
83 |
|
84 |
label_desc = """
|
85 |
+
## Decision Extraction & Classification
|
86 |
|
87 |
This tool allows you to quickly identify and categorize key clinical decisions within a single clinical note.
|
88 |
|
|
|
93 |
This provides a simplified overview of the patient's history and key decisions at a glance.
|
94 |
"""
|
95 |
vis_desc = """
|
96 |
+
## Patient Visualization
|
97 |
|
98 |
This tool allows you to visualize the timeline of clinical decisions across multiple clinical notes for a single patient.
|
99 |
|
|
|
114 |
<h1 style="text-align: center;">Medical Decisions Extraction, Visualization, and Annotation</h1>
|
115 |
|
116 |
<p style="font-size:1.2em;">This application offers three interactive tools for working with clinical text data:</p>
|
117 |
+
<p style="font-size:1.2em;">1. <b>Decision Extraction & Classification:</b> Process individual notes and receive highlighted key clinical decisions.</br>
|
118 |
+
2. <b>Patient Visualization:</b> Upload multiple notes to visualize the timeline of decisions.</br>
|
119 |
+
3. <b>Interactive Narrative Annotator:</b> Manually annotate text for detailed analysis and model training.</p>
|
120 |
"""
|
121 |
|
122 |
desc = '### Decision Categories\n'
|
|
|
217 |
--section-text-size: 16px;
|
218 |
--input-background: --neutral-50;
|
219 |
}
|
220 |
+
"""
|