Upload Emailgenie.py
Browse files- Emailgenie.py +14 -0
Emailgenie.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def generate_email(recipient_name, recipient_role, company_name, industry, personal_details):
|
4 |
+
return f"Hello {recipient_name},\n\nI hope this email finds you well. My name is Niket, and I'm reaching out to you as an Intern at 100x. I noticed that your company, {company_name}, is involved in the {industry} sector, and I believe we could explore potential collaboration. Would you be available for a coffee chat next week?\n\nLooking forward to hearing from you!\n\nBest,\nNiket"
|
5 |
+
with gr.Blocks() as demo:
|
6 |
+
gr.Markdown("# EmailGenie - Your AI Email Generator")
|
7 |
+
recipient_name = gr.Textbox(label="Recipient's Name")
|
8 |
+
recipient_role = gr.Textbox(label="Recipient's Role")
|
9 |
+
company_name = gr.Textbox(label="Company Name")
|
10 |
+
industry = gr.Textbox(label="Industry")
|
11 |
+
output = gr.Textbox(label="Generated Email", interactive=False)
|
12 |
+
generate_button = gr.Button("Generate Email")
|
13 |
+
generate_button.click(fn=generate_email, inputs=[recipient_name, recipient_role, company_name, industry], outputs=output)
|
14 |
+
demo.launch(share=True)
|