pere commited on
Commit
3ff292d
·
1 Parent(s): 492c8b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
  from transformers import T5ForConditionalGeneration, T5TokenizerFast, T5Config
3
 
4
  @st.cache(allow_output_mutation=True, suppress_st_warning=True)
@@ -42,7 +43,7 @@ st.sidebar.write("You can use the examples above, but for best effect: Copy text
42
  #with col3:
43
  # st.button('Remove Spaces')
44
 
45
- option = st.st_btn_select(('option1', 'option2', 'option3', 'option4'), index=2)
46
  st.write(f'Selected option: {option}')
47
 
48
  text = st.text_area(f"Corrupted text: ",key="ta" ,max_chars=1000, value= "No text in here…")
 
1
  import streamlit as st
2
+ !pip install st_btn_select
3
  from transformers import T5ForConditionalGeneration, T5TokenizerFast, T5Config
4
 
5
  @st.cache(allow_output_mutation=True, suppress_st_warning=True)
 
43
  #with col3:
44
  # st.button('Remove Spaces')
45
 
46
+ option = st_btn_select.st_btn_select(('option1', 'option2', 'option3', 'option4'), index=2)
47
  st.write(f'Selected option: {option}')
48
 
49
  text = st.text_area(f"Corrupted text: ",key="ta" ,max_chars=1000, value= "No text in here…")