Spaces:
Paused
Paused
Commit
·
34926d6
1
Parent(s):
699acc0
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,6 +129,8 @@ def process_input():
|
|
| 129 |
def get_case_summary(conv_detail):
|
| 130 |
chatresponse_desc = openai.ChatCompletion.create(
|
| 131 |
model="gpt-3.5-turbo",
|
|
|
|
|
|
|
| 132 |
messages=[
|
| 133 |
{"role": "system", "content": "You are an Text Summarizer."},
|
| 134 |
{"role": "user", "content": "You need to summarise the conversation between an agent and customer mentioned below. Remember to keep the Product Name, Customer Tone and other key elements from the convsersation"},
|
|
@@ -141,6 +143,8 @@ def get_case_summary(conv_detail):
|
|
| 141 |
def get_case_subject(conv_detail):
|
| 142 |
chatresponse_subj = openai.ChatCompletion.create(
|
| 143 |
model="gpt-3.5-turbo",
|
|
|
|
|
|
|
| 144 |
messages=[
|
| 145 |
{"role": "system", "content": "You are an Text Summarizer."},
|
| 146 |
{"role": "user", "content": "You need to summarise the conversation between an agent and customer in 15 words mentioned below for case subject."},
|
|
|
|
| 129 |
def get_case_summary(conv_detail):
|
| 130 |
chatresponse_desc = openai.ChatCompletion.create(
|
| 131 |
model="gpt-3.5-turbo",
|
| 132 |
+
temperature=0,
|
| 133 |
+
max_tokens=128,
|
| 134 |
messages=[
|
| 135 |
{"role": "system", "content": "You are an Text Summarizer."},
|
| 136 |
{"role": "user", "content": "You need to summarise the conversation between an agent and customer mentioned below. Remember to keep the Product Name, Customer Tone and other key elements from the convsersation"},
|
|
|
|
| 143 |
def get_case_subject(conv_detail):
|
| 144 |
chatresponse_subj = openai.ChatCompletion.create(
|
| 145 |
model="gpt-3.5-turbo",
|
| 146 |
+
temperature=0,
|
| 147 |
+
max_tokens=32,
|
| 148 |
messages=[
|
| 149 |
{"role": "system", "content": "You are an Text Summarizer."},
|
| 150 |
{"role": "user", "content": "You need to summarise the conversation between an agent and customer in 15 words mentioned below for case subject."},
|