cxumol commited on
Commit
cdc8d8c
·
unverified ·
1 Parent(s): 64b6fe3

add regen_pdf_btn

Browse files
Files changed (1) hide show
  1. app/app.py +13 -0
app/app.py CHANGED
@@ -384,6 +384,19 @@ with gr.Blocks(
384
  outputs=[debug_jobapp, cover_letter_pdf],
385
  )
386
  cancel_btn.click(fn=None, inputs=None, outputs=None, cancels=[main_click_event])
 
 
 
 
 
 
 
 
 
 
 
 
 
387
 
388
 
389
  if __name__ == "__main__":
 
384
  outputs=[debug_jobapp, cover_letter_pdf],
385
  )
386
  cancel_btn.click(fn=None, inputs=None, outputs=None, cancels=[main_click_event])
387
+ regen_pdf_btn.click(
388
+ fn=finalize_letter_pdf,
389
+ inputs=[
390
+ cheap_base,
391
+ cheap_key,
392
+ cheap_model,
393
+ jd_info,
394
+ cv_text,
395
+ cover_letter_text,
396
+ is_debug,
397
+ ],
398
+ outputs=[debug_jobapp, cover_letter_pdf],
399
+ )
400
 
401
 
402
  if __name__ == "__main__":