aiivar commited on
Commit
9785dbf
·
verified ·
1 Parent(s): 79ef65d

cover letter feature

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -742,6 +742,11 @@ with gr.Blocks() as demo:
742
 
743
  with gr.Tab("Cover Letter Generator"):
744
  gr.HTML(COVER_LETTER_INSTRUCTIONS)
 
 
 
 
 
745
 
746
  with gr.Row():
747
  with gr.Column(scale=1):
@@ -796,11 +801,6 @@ with gr.Blocks() as demo:
796
  """
797
  )
798
  gr.HTML("".join(style_previews))
799
-
800
- # Обновление описания при смене типа
801
- def update_type_description(letter_type_key: str):
802
- config = COVER_LETTER_TYPES.get(letter_type_key, COVER_LETTER_TYPES["modern"])
803
- return gr.update(value=config["description"])
804
 
805
  letter_type.change(
806
  update_type_description,
 
742
 
743
  with gr.Tab("Cover Letter Generator"):
744
  gr.HTML(COVER_LETTER_INSTRUCTIONS)
745
+
746
+ # Обновление описания при смене типа
747
+ def update_type_description(letter_type_key: str):
748
+ config = COVER_LETTER_TYPES.get(letter_type_key, COVER_LETTER_TYPES["modern"])
749
+ return gr.update(value=config["description"])
750
 
751
  with gr.Row():
752
  with gr.Column(scale=1):
 
801
  """
802
  )
803
  gr.HTML("".join(style_previews))
 
 
 
 
 
804
 
805
  letter_type.change(
806
  update_type_description,