Spaces:
Sleeping
Sleeping
Commit
·
b3ab28d
1
Parent(s):
8635bca
task: change role templates and increase temperature
Browse files
app.py
CHANGED
|
@@ -11,11 +11,10 @@ from dotenv import load_dotenv
|
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
# ChatOpenAI Templates
|
| 14 |
-
system_template = ""
|
| 15 |
-
"""
|
| 16 |
|
| 17 |
user_template = """{input}
|
| 18 |
-
|
| 19 |
"""
|
| 20 |
|
| 21 |
|
|
@@ -23,7 +22,7 @@ Think through your response step by step.
|
|
| 23 |
async def start_chat():
|
| 24 |
settings = {
|
| 25 |
"model": "gpt-3.5-turbo",
|
| 26 |
-
"temperature":
|
| 27 |
"max_tokens": 500,
|
| 28 |
"top_p": 1,
|
| 29 |
"frequency_penalty": 0,
|
|
|
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
# ChatOpenAI Templates
|
| 14 |
+
system_template = "" # Empty system prompt
|
|
|
|
| 15 |
|
| 16 |
user_template = """{input}
|
| 17 |
+
Categorize this input into a two or three word summary, then use the most suitable format for the response. Begin the response with the summary.
|
| 18 |
"""
|
| 19 |
|
| 20 |
|
|
|
|
| 22 |
async def start_chat():
|
| 23 |
settings = {
|
| 24 |
"model": "gpt-3.5-turbo",
|
| 25 |
+
"temperature": .6,
|
| 26 |
"max_tokens": 500,
|
| 27 |
"top_p": 1,
|
| 28 |
"frequency_penalty": 0,
|