Spanicin commited on
Commit
371c6ee
·
verified ·
1 Parent(s): 137aa2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -168,7 +168,7 @@ def openai_chat_avatar(text_prompt):
168
  model="gpt-4o-mini",
169
  messages=[
170
  {"role": "system", "content": "Summarize the following paragraph into a complete and accurate single sentence with no more than 15 words. The summary should capture the gist of the paragraph and make sense and remove the citation and document name from the end."},
171
- {"role": "user", "content": f"Please summarize the following paragraph into one sentence with 15 words or fewer, ensuring it makes sense and captures the gist and remove the citation from the end: {text_prompt}"},
172
  ],
173
  max_tokens = len(text_prompt), # Limit the response to a reasonable length for a summary
174
  )
 
168
  model="gpt-4o-mini",
169
  messages=[
170
  {"role": "system", "content": "Summarize the following paragraph into a complete and accurate single sentence with no more than 15 words. The summary should capture the gist of the paragraph and make sense and remove the citation and document name from the end."},
171
+ {"role": "user", "content": f"Please summarize the following paragraph with 30 words or fewer, ensuring it makes sense and captures the gist make sure to include the order_ids : {text_prompt}"},
172
  ],
173
  max_tokens = len(text_prompt), # Limit the response to a reasonable length for a summary
174
  )