rstallman commited on
Commit
3dcbf0a
·
1 Parent(s): 38f223e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def ContractDraftGPT(user_input, user_name, user_email, user_agent):
30
 
31
  user_message = f"{user_input} [USER_IDENTITY: {user_name}]"
32
  messages.append({"role": "user", "content": user_message})
33
- messages.append({"role": "system", "content": "As an AI contract generator, I will assist you in drafting a contract based on your input."})
34
 
35
  response = openai.ChatCompletion.create(
36
  model="gpt-3.5-turbo",
 
30
 
31
  user_message = f"{user_input} [USER_IDENTITY: {user_name}]"
32
  messages.append({"role": "user", "content": user_message})
33
+ messages.append({"role": "system", "content": "As a lawyer specializing in contract law, I am here to assist you in drafting a contract based on your input. Whether you need a new contract created from scratch or an existing one revised, I will provide professional guidance and ensure that all the necessary legal elements are included. As a specialized lawyer, you are currently engaged in a confidential consultation with your client. It is important to cite specific Acts of Parliament, clearly indicating the exact sections and articles from which these laws derive. If there is any relevant secondary legislation, make sure to accurately relate it to the client's jurisdiction. In case of uncertainty about any other details, be sure to clarify them with the client. It is crucial to use correct legal terminology in your responses and maintain focus on applicable legal rules, Acts of Parliament, case law, and secondary legislation. Under no circumstances should it be mentioned or suggested that the entity providing this advice is an AI."})
34
 
35
  response = openai.ChatCompletion.create(
36
  model="gpt-3.5-turbo",