Spaces:
Runtime error
Runtime error
Kaelan
commited on
Commit
·
7723a19
1
Parent(s):
6f4679f
check data sset name
Browse files- app.py +2 -2
- st_config.yaml +1 -1
app.py
CHANGED
@@ -45,7 +45,7 @@ if args['examples'] is not None:
|
|
45 |
else:
|
46 |
chosen_note = None
|
47 |
|
48 |
-
if chosen_note == "
|
49 |
text_input = pd.read_csv("./eval_35.csv", converters={'entities': ast.literal_eval})
|
50 |
text_input = text_input.to_dict('records')
|
51 |
|
@@ -60,7 +60,7 @@ if len(model_names) > 0:
|
|
60 |
##################
|
61 |
### Text area ###
|
62 |
##################
|
63 |
-
if chosen_note != "
|
64 |
text_input = st.text_area("Type notes in the box below",
|
65 |
value=args['examples'][chosen_note] if args['examples'] is not None else '')
|
66 |
st.markdown("---")
|
|
|
45 |
else:
|
46 |
chosen_note = None
|
47 |
|
48 |
+
if chosen_note == "radiology_eval_dataset":
|
49 |
text_input = pd.read_csv("./eval_35.csv", converters={'entities': ast.literal_eval})
|
50 |
text_input = text_input.to_dict('records')
|
51 |
|
|
|
60 |
##################
|
61 |
### Text area ###
|
62 |
##################
|
63 |
+
if chosen_note != "radiology_eval_dataset":
|
64 |
text_input = st.text_area("Type notes in the box below",
|
65 |
value=args['examples'][chosen_note] if args['examples'] is not None else '')
|
66 |
st.markdown("---")
|
st_config.yaml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
model_dir: ""
|
3 |
default_models: ['en_Radiology_ner_bc5cdr_md','en_ner_bc5cdr_md']
|
4 |
examples:
|
5 |
-
|
6 |
clinical note A:
|
7 |
"A 74 year old woman with history of hypertension and heart disease who had \
|
8 |
been discharged 10 days before knee prosthetic surgery was admitted with 4 day \
|
|
|
2 |
model_dir: ""
|
3 |
default_models: ['en_Radiology_ner_bc5cdr_md','en_ner_bc5cdr_md']
|
4 |
examples:
|
5 |
+
radiology_eval_dataset: "eval_35.csv"
|
6 |
clinical note A:
|
7 |
"A 74 year old woman with history of hypertension and heart disease who had \
|
8 |
been discharged 10 days before knee prosthetic surgery was admitted with 4 day \
|