KneeKhan commited on
Commit
c3caa05
1 Parent(s): fc61ccf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -83,14 +83,21 @@ with demo:
83
  recipient = gr.Dropdown(["student", "professor", "employee", "employer", "coworker", "applicant", "recruiter"], label="Recipient", placeholder="I am sending to my...")
84
  recipient_name = gr.Textbox(label="Recipient Name", placeholder = "Their name is...")
85
 
 
86
  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")
 
87
  email = gr.Textbox(label="Input", lines=10, placeholder="Enter your Message Here!")
88
- model_id = gr.Dropdown(["GPT-3", "bigscience/T0pp", "bigscience/bloom", "EleutherAI/gpt-neo-2.7B"] ,label = "model_id")
89
  submit_button = gr.Button("Generate my email!")
90
  text_output = gr.Textbox(lines=10, label = "Email", placeholder = "Your generated email!", interactive = True)
91
 
92
- input_list = [sender, recipient, recipient_name, subject, email, model_id]
 
 
 
93
 
94
- submit_button.click(pre_query, inputs = input_list, outputs=text_output)
95
 
 
 
96
  demo.launch(debug=True)
 
83
  recipient = gr.Dropdown(["student", "professor", "employee", "employer", "coworker", "applicant", "recruiter"], label="Recipient", placeholder="I am sending to my...")
84
  recipient_name = gr.Textbox(label="Recipient Name", placeholder = "Their name is...")
85
 
86
+
87
  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")
88
+ dates = gr.Textbox(label="Relevant Dates", placeholder ="MM/DD/YYYY")
89
  email = gr.Textbox(label="Input", lines=10, placeholder="Enter your Message Here!")
90
+ model_id = gr.Dropdown(["GPT-3", "bigscience/T0pp", "bigscience/bloom", "EleutherAI/gpt-neox-20b"] ,label = "model_id")
91
  submit_button = gr.Button("Generate my email!")
92
  text_output = gr.Textbox(lines=10, label = "Email", placeholder = "Your generated email!", interactive = True)
93
 
94
+ with gr.Row():
95
+ recipient_address = gr.Textbox(label="To", placeholder ="recipient's address")
96
+ sender_address = gr.Textbox(label="From", placeholder ="your email address")
97
+ send_email = gr.Button("Send email!")
98
 
99
+ input_list = [sender, recipient, recipient_name, subject, dates, email, model_id]
100
 
101
+ submit_button.click(pre_query, inputs = input_list, outputs=text_output)
102
+
103
  demo.launch(debug=True)