aiivar commited on
Commit
19bf33e
·
verified ·
1 Parent(s): 9785dbf

cover letter feature

Browse files
Files changed (1) hide show
  1. app.py +0 -37
app.py CHANGED
@@ -762,46 +762,9 @@ with gr.Blocks() as demo:
762
  value=COVER_LETTER_TYPES["modern"]["description"],
763
  label="Описание стиля"
764
  )
765
-
766
- # Быстрые кнопки выбора стиля
767
- gr.Markdown("**Быстрый выбор:**")
768
- with gr.Row():
769
- for key in ["formal", "modern", "technical"]:
770
- config = COVER_LETTER_TYPES[key]
771
- btn = gr.Button(
772
- config["name"],
773
- size="sm",
774
- variant="secondary",
775
- elem_classes="style-btn"
776
- )
777
- btn.click(
778
- lambda k=key: gr.update(value=k),
779
- inputs=[],
780
- outputs=[letter_type]
781
- ).then(
782
- update_type_description,
783
- inputs=[letter_type],
784
- outputs=[type_description]
785
- )
786
 
787
  generate_cl_btn = gr.Button("Generate Cover Letter", variant="primary")
788
 
789
- with gr.Column(scale=2):
790
- # Быстрые превью стилей
791
- gr.Markdown("### Быстрый просмотр стилей:")
792
-
793
- style_previews = []
794
- for key, config in list(COVER_LETTER_TYPES.items())[:3]: # Показываем первые 3
795
- style_previews.append(
796
- f"""
797
- <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 10px;">
798
- <div style="font-weight: 600; color: #374151;">{config['name']}</div>
799
- <div style="font-size: 13px; color: #6b7280;">{config['description']}</div>
800
- </div>
801
- """
802
- )
803
- gr.HTML("".join(style_previews))
804
-
805
  letter_type.change(
806
  update_type_description,
807
  inputs=[letter_type],
 
762
  value=COVER_LETTER_TYPES["modern"]["description"],
763
  label="Описание стиля"
764
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
 
766
  generate_cl_btn = gr.Button("Generate Cover Letter", variant="primary")
767
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
768
  letter_type.change(
769
  update_type_description,
770
  inputs=[letter_type],