Update app.py
Browse files
app.py
CHANGED
@@ -24,15 +24,15 @@ new_model = tf.keras.models.load_model('pubmed_model.h5',
|
|
24 |
|
25 |
st.title('Medical Abstract Reader')
|
26 |
|
27 |
-
with st.container():
|
28 |
-
text = st.text_area('Classify medical abstract into various categories.', height=600, key='text')
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
33 |
-
st.session_state["text"] = ""
|
34 |
|
35 |
-
|
|
|
|
|
|
|
36 |
|
37 |
if submit:
|
38 |
if text is not None:
|
|
|
24 |
|
25 |
st.title('Medical Abstract Reader')
|
26 |
|
|
|
|
|
27 |
|
28 |
+
text = st.text_area('Classify medical abstract into various categories.', height=600, key='text')
|
29 |
|
30 |
+
submit = st.button('Predict')
|
|
|
31 |
|
32 |
+
def clear_text():
|
33 |
+
st.session_state["text"] = ""
|
34 |
+
|
35 |
+
clear = st.button("Clear text input", on_click=clear_text)
|
36 |
|
37 |
if submit:
|
38 |
if text is not None:
|