andreinigo commited on
Commit
9a55b47
·
1 Parent(s): fe05aee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -165,7 +165,7 @@ def summarize_meeting(filepath):
165
  response = openai.ChatCompletion.create(
166
  model="gpt-4",
167
  messages=messages,
168
- temperature=.4,
169
  top_p=1,
170
  frequency_penalty=0,
171
  presence_penalty=0
@@ -175,16 +175,15 @@ def summarize_meeting(filepath):
175
  response["choices"][0]["message"]['content'].strip())
176
 
177
  # Consolidate these meeting summaries.
178
- prompt_request = "Consolidate these meeting summaries: " + \
179
- str(prompt_response)
180
 
181
  # Summarize the text of the meeting transcripts.
182
- messages = [{"role": "system", "content": "Summarize the text of the meeting transcripts. The output format should be markdown in the same language as the user's input. Start with a brief summary of the meeting, continue with bullets outlining the most important points of discussion. Finally, provide a list of action items with a due date from the provided meeting transcript text."}]
183
  messages.append({"role": "user", "content": prompt_request})
184
  response = openai.ChatCompletion.create(
185
  model="gpt-4",
186
  messages=messages,
187
- temperature=.4,
188
  top_p=1,
189
  frequency_penalty=0,
190
  presence_penalty=0
 
165
  response = openai.ChatCompletion.create(
166
  model="gpt-4",
167
  messages=messages,
168
+ temperature=.5,
169
  top_p=1,
170
  frequency_penalty=0,
171
  presence_penalty=0
 
175
  response["choices"][0]["message"]['content'].strip())
176
 
177
  # Consolidate these meeting summaries.
178
+ prompt_request = str(prompt_response)
 
179
 
180
  # Summarize the text of the meeting transcripts.
181
+ messages = [{"role": "system", "content": "Consolidate, and summarize the text of the meeting transcripts. The output format should be markdown in the same language as the user's input. Start with a brief summary of the meeting, continue with bullets outlining the most important points of discussion. Finally, provide a list of action items with a due date from the provided meeting transcript text."}]
182
  messages.append({"role": "user", "content": prompt_request})
183
  response = openai.ChatCompletion.create(
184
  model="gpt-4",
185
  messages=messages,
186
+ temperature=.3,
187
  top_p=1,
188
  frequency_penalty=0,
189
  presence_penalty=0