Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
-
system_message = "You
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
@@ -76,7 +76,7 @@ def generate_response(user_query, relevant_segment):
|
|
76 |
model="gpt-3.5-turbo",
|
77 |
messages=messages,
|
78 |
max_tokens=150,
|
79 |
-
temperature=0.
|
80 |
top_p=1,
|
81 |
frequency_penalty=0,
|
82 |
presence_penalty=0
|
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
+
system_message = "You make outfits by taking keywords such as comfort level, color, and occassion inputted by users and outputting a list of simple clothing pieces (consisting of a top, bottom, and possibly accessories and outerwear) as well as a pinterest link to the outfit, resulting in a cohesive outfit."
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
|
|
76 |
model="gpt-3.5-turbo",
|
77 |
messages=messages,
|
78 |
max_tokens=150,
|
79 |
+
temperature=0.4,
|
80 |
top_p=1,
|
81 |
frequency_penalty=0,
|
82 |
presence_penalty=0
|