Sasidhar commited on
Commit
e17ace8
·
1 Parent(s): 47213fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -1
app.py CHANGED
@@ -5,6 +5,7 @@ from io import StringIO
5
  from transformers import AutoTokenizer, AutoModelForTokenClassification
6
  from text_extractor import *
7
  from text_annotatator import *
 
8
  import os
9
  from streamlit_text_annotation import text_annotation
10
 
@@ -202,4 +203,32 @@ elif selected_menu == "Annotation Tool":
202
  if data:
203
  "Returned data:", data
204
  elif selected_menu == "Claim Status Report":
205
- claim_number = st.text_input("Enter the Claim Number")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  from transformers import AutoTokenizer, AutoModelForTokenClassification
6
  from text_extractor import *
7
  from text_annotatator import *
8
+ from claim_details import *
9
  import os
10
  from streamlit_text_annotation import text_annotation
11
 
 
203
  if data:
204
  "Returned data:", data
205
  elif selected_menu == "Claim Status Report":
206
+ claim_number = st.text_input("Enter the Claim Number")
207
+
208
+ st.subheader("Claim Attributes:")
209
+ claim_attributes = get_claim_details()
210
+
211
+ for label,value in claim_attributes.items():
212
+ st.metric(label, value, delta=None, delta_color="normal", help=None)
213
+
214
+ st.subheader("Injury Details:")
215
+ injury_details = get_injury_details()
216
+ st.write(injury_details)
217
+
218
+
219
+ st.subheader("Injury Severity:")
220
+ injury_severity = get_injury_severity()
221
+ st.write(injury_severity)
222
+
223
+ st.subheader("Preexisting Conditions:")
224
+ preexisting_conditions = get_preexisting_conditions()
225
+ st.write(preexisting_conditions)
226
+
227
+ st.subheader("Work Capacity:")
228
+ work_capacity = get_work_capacity()
229
+ st.write(work_capacity)
230
+
231
+
232
+ st.subheader("Injury Management Plan:")
233
+ injury_management_plan = get_injury_management_plan()
234
+ st.write(injury_management_plan)