Mohannad commited on
Commit
d4127c3
1 Parent(s): 6f41dd8

fix regenrate

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -63,11 +63,13 @@ st.title("Spelling checker for English learning")
63
  if st.sidebar.button("Regenerate"):
64
  update_frontend()
65
  user_word = None
 
 
66
 
67
  if st.sidebar.button("Show"):
68
  update_audio()
69
 
70
- user_word = st.text_input("word", value="")
71
 
72
  if st.sidebar.button("check spelling") or user_word:
73
  main_word = get_main_word()
 
63
  if st.sidebar.button("Regenerate"):
64
  update_frontend()
65
  user_word = None
66
+ st.session_state["text"] = ""
67
+
68
 
69
  if st.sidebar.button("Show"):
70
  update_audio()
71
 
72
+ user_word = st.text_input("word", value="", key="text")
73
 
74
  if st.sidebar.button("check spelling") or user_word:
75
  main_word = get_main_word()