ashhadahsan commited on
Commit
f3ead1a
·
1 Parent(s): beb7c02

fixed bug in cancel

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def load_t5():
35
 
36
  tokenizer = AutoTokenizer.from_pretrained("t5-base")
37
  return model, tokenizer
38
- cancel_button=st.empty()
39
 
40
  @st.cache
41
  def custom_model():
@@ -76,7 +76,7 @@ hide_streamlit_style = """
76
  </style>
77
  """
78
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
79
-
80
  ps = st.empty()
81
  if st.button("Process",type="primary"):
82
  if uploaded_file is not None:
 
35
 
36
  tokenizer = AutoTokenizer.from_pretrained("t5-base")
37
  return model, tokenizer
38
+
39
 
40
  @st.cache
41
  def custom_model():
 
76
  </style>
77
  """
78
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
79
+ cancel_button=st.empty()
80
  ps = st.empty()
81
  if st.button("Process",type="primary"):
82
  if uploaded_file is not None: