Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,10 +106,10 @@ def summarize_text(text: str):
|
|
| 106 |
#engine="AmplifAI-Chat",
|
| 107 |
messages=[
|
| 108 |
{"role": "system", "content": "You are an AI assistant that summarizes conversations and extracts keywords/metrics."},
|
| 109 |
-
{"role": "user", "content": f"The data is a pre-recorded conversation between a call center agent and a customer. Identify the following: \n\n1. Keywords/Metrics about the conversation \n2. A summary of the conversation including details. \n\nOutput format: \nKeywords/Metrics: [Extracted Keywords]\nSummary: [Generated Summary]\n\nData: {text}"}
|
| 110 |
],
|
| 111 |
temperature=0.7,
|
| 112 |
-
max_tokens=
|
| 113 |
top_p=1.0,
|
| 114 |
frequency_penalty=0.0,
|
| 115 |
presence_penalty=0.0
|
|
|
|
| 106 |
#engine="AmplifAI-Chat",
|
| 107 |
messages=[
|
| 108 |
{"role": "system", "content": "You are an AI assistant that summarizes conversations and extracts keywords/metrics."},
|
| 109 |
+
{"role": "user", "content": f"The data is a pre-recorded conversation between a call center agent and a customer. Identify the following: \n\n1. Keywords/Metrics about the conversation \n2. A summary of the conversation including details (max 4 lines). \n\nOutput format: \nKeywords/Metrics: [Extracted Keywords]\nSummary: [Generated Summary]\n\nData: {text}"}
|
| 110 |
],
|
| 111 |
temperature=0.7,
|
| 112 |
+
max_tokens=150,
|
| 113 |
top_p=1.0,
|
| 114 |
frequency_penalty=0.0,
|
| 115 |
presence_penalty=0.0
|