Spaces:
Paused
Paused
Commit
·
de7ee14
1
Parent(s):
bfb5972
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def get_case_summary(conv_detail):
|
|
138 |
#]
|
139 |
#)
|
140 |
#case_desc = chatresponse_desc.choices[0].message.content
|
141 |
-
chatresponse_desc = openai.
|
142 |
model = 'text-davinci-003',
|
143 |
prompt = 'Summarise the conversation between an agent and customer.Remember to keep the Product Name, Customer Tone and other key elements from the convsersation.Here is the conversation: ' + conv_detail,
|
144 |
temperature = 0,
|
@@ -161,7 +161,7 @@ def get_case_subject(conv_detail):
|
|
161 |
#]
|
162 |
#)
|
163 |
#case_subj = chatresponse_subj.choices[0].message.content
|
164 |
-
chatresponse_subj = openai.
|
165 |
model = 'text-davinci-003',
|
166 |
prompt = 'Summarise the conversation between an agent and customer in 15 words mentioned below for Case Subject. Here is the conversation: ' + conv_detail,
|
167 |
temperature = 0,
|
|
|
138 |
#]
|
139 |
#)
|
140 |
#case_desc = chatresponse_desc.choices[0].message.content
|
141 |
+
chatresponse_desc = openai.Completion.create(
|
142 |
model = 'text-davinci-003',
|
143 |
prompt = 'Summarise the conversation between an agent and customer.Remember to keep the Product Name, Customer Tone and other key elements from the convsersation.Here is the conversation: ' + conv_detail,
|
144 |
temperature = 0,
|
|
|
161 |
#]
|
162 |
#)
|
163 |
#case_subj = chatresponse_subj.choices[0].message.content
|
164 |
+
chatresponse_subj = openai.Completion.create(
|
165 |
model = 'text-davinci-003',
|
166 |
prompt = 'Summarise the conversation between an agent and customer in 15 words mentioned below for Case Subject. Here is the conversation: ' + conv_detail,
|
167 |
temperature = 0,
|