mkhekare commited on
Commit
b5949d6
·
verified ·
1 Parent(s): 1dc4427

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -261,6 +261,7 @@ if st.session_state.edited_cv_data:
261
  help="Paste the job description you're applying for to get tailored recommendations"
262
  )
263
 
 
264
  if st.button("✨ Optimize for This Job"):
265
  if not st.session_state.job_description:
266
  st.warning("Please enter a job description first")
@@ -273,7 +274,8 @@ if st.session_state.edited_cv_data:
273
  )
274
  st.session_state.edited_cv_data = optimized_data
275
  st.success("Optimization complete! Review the changes below.")
276
- st.experimental_rerun()
 
277
  except Exception as e:
278
  st.error(f"Error during optimization: {str(e)}")
279
 
 
261
  help="Paste the job description you're applying for to get tailored recommendations"
262
  )
263
 
264
+ # In your app.py where you have the rerun call
265
  if st.button("✨ Optimize for This Job"):
266
  if not st.session_state.job_description:
267
  st.warning("Please enter a job description first")
 
274
  )
275
  st.session_state.edited_cv_data = optimized_data
276
  st.success("Optimization complete! Review the changes below.")
277
+ st.experimental_rerun() # Remove this line
278
+ st.rerun() # Use this instead
279
  except Exception as e:
280
  st.error(f"Error during optimization: {str(e)}")
281