rstallman commited on
Commit
9173059
·
1 Parent(s): 500560b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -60,7 +60,8 @@ def ContractDraftGPT(user_input, user_name, user_email, user_agent, is_fintech_s
60
 
61
  # Update Google Sheet
62
  row_values = [
63
- timestamp, user_input, user_name, user_email, ip_address, device_type, region.capitalize() if region else "", profession, ContractGPT_reply]
 
64
  sheet.append_row(row_values)
65
 
66
  return ContractGPT_reply
@@ -81,7 +82,7 @@ def launch_interface():
81
  gradio.inputs.Textbox(label="Your Name", placeholder="Enter your name"),
82
  gradio.inputs.Textbox(label="Your Email", placeholder="Enter your email"),
83
  gradio.inputs.Radio(label="Are you a fintech startup?", choices=["Yes", "No"]),
84
- gradio.inputs.Radio(label="Select your region:", choices=["England", "Scotland", "Wales", "Northern Ireland"])
85
  gradio.inputs.Textbox(label="Your Profession", placeholder="Enter your profession")
86
  ],
87
  outputs=gradio.outputs.Textbox(label="Contract Draft"),
@@ -89,5 +90,6 @@ def launch_interface():
89
  description="Generate contract drafts using OpenAI's GPT-3.5 model."
90
  )
91
  iface.launch()
 
92
  if __name__ == "__main__":
93
  launch_interface()
 
60
 
61
  # Update Google Sheet
62
  row_values = [
63
+ timestamp, user_input, user_name, user_email, ip_address, device_type, region.capitalize() if region else "", profession, ContractGPT_reply
64
+ ]
65
  sheet.append_row(row_values)
66
 
67
  return ContractGPT_reply
 
82
  gradio.inputs.Textbox(label="Your Name", placeholder="Enter your name"),
83
  gradio.inputs.Textbox(label="Your Email", placeholder="Enter your email"),
84
  gradio.inputs.Radio(label="Are you a fintech startup?", choices=["Yes", "No"]),
85
+ gradio.inputs.Radio(label="Select your region:", choices=["England", "Scotland", "Wales", "Northern Ireland"]),
86
  gradio.inputs.Textbox(label="Your Profession", placeholder="Enter your profession")
87
  ],
88
  outputs=gradio.outputs.Textbox(label="Contract Draft"),
 
90
  description="Generate contract drafts using OpenAI's GPT-3.5 model."
91
  )
92
  iface.launch()
93
+
94
  if __name__ == "__main__":
95
  launch_interface()