Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,6 @@ with demo:
|
|
89 |
|
90 |
|
91 |
subject = gr.Dropdown([ "Requesting a meeting", "Conflict with scheduled meeting time", "Requesting clarification", "Requesting to leave early", "Requesting a leave of absence", "Requesting a letter of recommendation", "Requesting a referral for a job application"], label= "Subject/Context")
|
92 |
-
dates = gr.Textbox(label="Relevant Dates", placeholder ="MM/DD/YYYY")
|
93 |
email = gr.Textbox(label="Input", lines=10, placeholder="Enter your Message Here!")
|
94 |
model_id = gr.Dropdown(["GPT-3", "bigscience/T0pp", "bigscience/bloom", "EleutherAI/gpt-neox-20b"] ,label = "model_id")
|
95 |
submit_button = gr.Button("Generate my email!")
|
@@ -100,9 +99,8 @@ with demo:
|
|
100 |
email_link = gr.Textbox(label="From", placeholder ="click after email")
|
101 |
send_email = gr.Button("Send email!")
|
102 |
|
103 |
-
input_list = [sender, recipient, recipient_name, subject,
|
104 |
|
105 |
submit_button.click(pre_query, inputs = input_list, outputs=text_output)
|
106 |
send_email.click(set_email_link, inputs = [text_output, recipient_address, subject], outputs = email_link)
|
107 |
-
|
108 |
demo.launch(debug=True)
|
|
|
89 |
|
90 |
|
91 |
subject = gr.Dropdown([ "Requesting a meeting", "Conflict with scheduled meeting time", "Requesting clarification", "Requesting to leave early", "Requesting a leave of absence", "Requesting a letter of recommendation", "Requesting a referral for a job application"], label= "Subject/Context")
|
|
|
92 |
email = gr.Textbox(label="Input", lines=10, placeholder="Enter your Message Here!")
|
93 |
model_id = gr.Dropdown(["GPT-3", "bigscience/T0pp", "bigscience/bloom", "EleutherAI/gpt-neox-20b"] ,label = "model_id")
|
94 |
submit_button = gr.Button("Generate my email!")
|
|
|
99 |
email_link = gr.Textbox(label="From", placeholder ="click after email")
|
100 |
send_email = gr.Button("Send email!")
|
101 |
|
102 |
+
input_list = [sender, recipient, recipient_name, subject, email, model_id]
|
103 |
|
104 |
submit_button.click(pre_query, inputs = input_list, outputs=text_output)
|
105 |
send_email.click(set_email_link, inputs = [text_output, recipient_address, subject], outputs = email_link)
|
|
|
106 |
demo.launch(debug=True)
|