realfreko commited on
Commit
2ee3d16
1 Parent(s): 26869a9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -24,14 +24,15 @@ new_model = tf.keras.models.load_model('pubmed_model.h5',
24
 
25
  st.title('Medical Abstract Reader')
26
 
27
- text = st.text_area('Classify medical abstract into various categories.', height=600, key='text')
 
28
 
29
- submit = st.button('Predict', use_container_width=True)
30
 
31
- def clear_text():
32
- st.session_state["text"] = ""
33
 
34
- clear = st.button("Clear text input", on_click=clear_text, use_container_width=True)
35
 
36
  if submit:
37
  if text is not None:
 
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', use_container_width=True)
31
 
32
+ def clear_text():
33
+ st.session_state["text"] = ""
34
 
35
+ clear = st.button("Clear text input", on_click=clear_text, use_container_width=True)
36
 
37
  if submit:
38
  if text is not None: