adriiita commited on
Commit
d2253f9
·
verified ·
1 Parent(s): 6bcf519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def email_interface(name, subject, recipient, recipient_info):
37
  structured_info = structure_info(recipient_info)
38
  return generate_email(name, subject, recipient, structured_info)
39
 
40
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
41
  gr.Markdown(
42
  """
43
  # 📧 EmailGenie
@@ -77,6 +77,25 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
77
  fn=email_interface,
78
  cache_examples=True,
79
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  if __name__ == "__main__":
82
  demo.launch()
 
37
  structured_info = structure_info(recipient_info)
38
  return generate_email(name, subject, recipient, structured_info)
39
 
40
+ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
41
  gr.Markdown(
42
  """
43
  # 📧 EmailGenie
 
77
  fn=email_interface,
78
  cache_examples=True,
79
  )
80
+
81
+ # Add a slider for email formality
82
+ formality = gr.Slider(minimum=1, maximum=5, value=3, step=1, label="Email Formality (1: Casual, 5: Formal)")
83
+
84
+ # Add a checkbox for including a call-to-action
85
+ include_cta = gr.Checkbox(label="Include Call-to-Action")
86
+
87
+ # Add a dropdown for email tone
88
+ tone = gr.Dropdown(["Friendly", "Professional", "Enthusiastic", "Neutral"], label="Email Tone", value="Professional")
89
+
90
+ # Add an accordion with tips
91
+ with gr.Accordion("Tips for Effective Emails"):
92
+ gr.Markdown("""
93
+ 1. Keep it concise and to the point
94
+ 2. Use a clear and descriptive subject line
95
+ 3. Personalize the email based on the recipient's background
96
+ 4. Proofread before sending
97
+ 5. Include a clear call-to-action if necessary
98
+ """)
99
 
100
  if __name__ == "__main__":
101
  demo.launch()