Spaces:
Sleeping
Sleeping
added temp to autoqa fn
Browse files
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()
|