chris999 commited on
Commit
9778bfc
·
verified ·
1 Parent(s): 20195dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -192,15 +192,15 @@ def decide(issue_id):
192
 
193
  if st.button("Get AI Decision"):
194
  openai.api_key = "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"
195
- prompt = f"Given the following solutions for the issue '{issue.title}', which one is the most socio-democratic decision?\n"
196
  for solution in solutions:
197
  prompt += f"- {solution.content}\n"
198
- prompt += "Please consider socio-democratic values and provide a summary on the best decision."
199
 
200
  response = openai.ChatCompletion.create(
201
  model="gpt-3.5-turbo",
202
  messages=[
203
- {"role": "system", "content": "You are an assistant helping to make socio-democratic decisions."},
204
  {"role": "user", "content": prompt}
205
  ],
206
  max_tokens=150
 
192
 
193
  if st.button("Get AI Decision"):
194
  openai.api_key = "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"
195
+ prompt = f"Given the following solutions for the issue '{issue.title}', which one is the most socio-democratic decision? Do not include socio-democratic phrasing or by name in the response. \n"
196
  for solution in solutions:
197
  prompt += f"- {solution.content}\n"
198
+ prompt += "Please consider socio-democratic values and provide a summary on the best decision. Do not include socio-democratic phrasing or by name in the response."
199
 
200
  response = openai.ChatCompletion.create(
201
  model="gpt-3.5-turbo",
202
  messages=[
203
+ {"role": "system", "content": "You are an assistant helping to make socio-democratic decisions. Do not include socio-democratic phrasing or by name in the response."},
204
  {"role": "user", "content": prompt}
205
  ],
206
  max_tokens=150