Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ class GenerateResponse4(BaseModel):
|
|
| 44 |
|
| 45 |
#Summarize function
|
| 46 |
def summarize_text(text: str):
|
| 47 |
-
response = openai.
|
| 48 |
engine="AmplifAI-Chat-New",
|
| 49 |
prompt="The data is a pre-recorded conversation between a call center agent and a customer. Identify the following: keywords/metrics about the conversation, a summary of the conversation including details. Output should be in the format Keywords/Metrics: ,\n Summary:. \n Data: " + text,
|
| 50 |
temperature=0.7,
|
|
|
|
| 44 |
|
| 45 |
#Summarize function
|
| 46 |
def summarize_text(text: str):
|
| 47 |
+
response = openai.ChatCompletion.create(
|
| 48 |
engine="AmplifAI-Chat-New",
|
| 49 |
prompt="The data is a pre-recorded conversation between a call center agent and a customer. Identify the following: keywords/metrics about the conversation, a summary of the conversation including details. Output should be in the format Keywords/Metrics: ,\n Summary:. \n Data: " + text,
|
| 50 |
temperature=0.7,
|