AmpParth commited on
Commit
b8c50c2
·
verified ·
1 Parent(s): 06a5249

added temp to autoqa fn

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -156,7 +156,8 @@ def qa_automation(text: str):
156
  messages=[
157
  {"role": "system", "content": "You are an AI assistant evaluating a customer service call based on quality assurance criteria."},
158
  {"role": "user", "content": f"Question: {question}\nTranscript: {text}\nAnswer:"}
159
- ]
 
160
  )
161
  if response.choices:
162
  answer = response.choices[0].message.content.strip()
 
156
  messages=[
157
  {"role": "system", "content": "You are an AI assistant evaluating a customer service call based on quality assurance criteria."},
158
  {"role": "user", "content": f"Question: {question}\nTranscript: {text}\nAnswer:"}
159
+ ],
160
+ max_tokens=450
161
  )
162
  if response.choices:
163
  answer = response.choices[0].message.content.strip()