anuragshas commited on
Commit
215cbb5
1 Parent(s): 30b774c

Add spinner

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def get_correction(input_text):
40
  correct_response = requests.get(correct_request)
41
  correct_json = json.loads(correct_response.text)
42
  corrected_sentence = correct_json["corrected_sentence"]
43
- result = diff_strings(corrected_sentence,input_text)
 
44
  st.markdown(result, unsafe_allow_html=True)
45
 
46
  def diff_strings(output_text, input_text):
 
40
  correct_response = requests.get(correct_request)
41
  correct_json = json.loads(correct_response.text)
42
  corrected_sentence = correct_json["corrected_sentence"]
43
+ with st.spinner('Wait for it...'):
44
+ result = diff_strings(corrected_sentence,input_text)
45
  st.markdown(result, unsafe_allow_html=True)
46
 
47
  def diff_strings(output_text, input_text):