realfreko commited on
Commit
237048d
1 Parent(s): 2cf4fe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- 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:
 
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: