Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def run_model(input_text):
|
|
149 |
|
150 |
#st.text_area(visualize (runtext,output))
|
151 |
st.success(output)
|
152 |
-
|
153 |
|
154 |
|
155 |
col1, col2 = st.columns([1,1])
|
@@ -159,6 +159,19 @@ with col1:
|
|
159 |
run_model(runtext)
|
160 |
sentences=runtext.split('.')
|
161 |
st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
with col2:
|
163 |
st.button('NER')
|
164 |
doc = nlp(str(original_text2))
|
@@ -172,7 +185,7 @@ col3, col4 = st.columns(2)
|
|
172 |
with col3:
|
173 |
# st.text_area(visualize (runtext,output))
|
174 |
|
175 |
-
st.write(
|
176 |
with col4:
|
177 |
st.text_area('testing', str(reference_text))#,label_visibility="hidden")
|
178 |
|
|
|
149 |
|
150 |
#st.text_area(visualize (runtext,output))
|
151 |
st.success(output)
|
152 |
+
# return output
|
153 |
|
154 |
|
155 |
col1, col2 = st.columns([1,1])
|
|
|
159 |
run_model(runtext)
|
160 |
sentences=runtext.split('.')
|
161 |
st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")
|
162 |
+
|
163 |
+
with col1_tab1:
|
164 |
+
st.subheader("PROBLEM")
|
165 |
+
|
166 |
+
|
167 |
+
with col2_tab1:
|
168 |
+
st.subheader("DIAGNOSIS")
|
169 |
+
|
170 |
+
with col3_tab1:
|
171 |
+
st.subheader("MEDICATION")
|
172 |
+
with col4_tab1:
|
173 |
+
st.subheader("PROCEDURE")
|
174 |
+
|
175 |
with col2:
|
176 |
st.button('NER')
|
177 |
doc = nlp(str(original_text2))
|
|
|
185 |
with col3:
|
186 |
# st.text_area(visualize (runtext,output))
|
187 |
|
188 |
+
st.write('testing')
|
189 |
with col4:
|
190 |
st.text_area('testing', str(reference_text))#,label_visibility="hidden")
|
191 |
|