Aditya Patkar commited on
Commit
92dff8b
1 Parent(s): 6c6956f

Added spinner for generation wait period

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -169,9 +169,10 @@ def main():
169
  elif company == "":
170
  st.error("Please enter a company name")
171
  else:
172
- cover_letter = get_cover_letter(title, company, more_info, "resume.pdf")
173
- container_three.markdown("---")
174
- container_three.markdown("### Cover Letter:")
175
- container_three.write(cover_letter)
 
176
 
177
  main()
 
169
  elif company == "":
170
  st.error("Please enter a company name")
171
  else:
172
+ with st.spinner('Generating...'):
173
+ cover_letter = get_cover_letter(title, company, more_info, "resume.pdf")
174
+ container_three.markdown("---")
175
+ container_three.markdown("### Cover Letter:")
176
+ container_three.write(cover_letter)
177
 
178
  main()