Spaces:
Sleeping
Sleeping
TTsamurai
commited on
Commit
·
e52ec80
1
Parent(s):
ee9ade6
update
Browse files- .python-version +1 -1
- app.py +2 -2
.python-version
CHANGED
@@ -1 +1 @@
|
|
1 |
-
3.
|
|
|
1 |
+
3.10.5
|
app.py
CHANGED
@@ -125,7 +125,7 @@ PERSONALITY_MISADVISOR = load_static_content(PERSONALITY_MISADVISOR_FILE)
|
|
125 |
|
126 |
# Other constants
|
127 |
FIRST_MESSAGE = "Hey"
|
128 |
-
USER_PREFERENCE_SUMMARY =
|
129 |
DEBUG = False
|
130 |
API_TYPE = "together"
|
131 |
assert API_TYPE in ["together", "local", "debug"], "The API should be either 'together' or 'local'"
|
@@ -266,7 +266,7 @@ def add_user_profile_to_system_instruction(
|
|
266 |
# exp_id = 1 => No personalization
|
267 |
if exp_id == 1:
|
268 |
return system_instruction
|
269 |
-
if summary:
|
270 |
if user_preference_elicitation_data["summary_history"] == "":
|
271 |
# Format prompt
|
272 |
summarization_prompt = SUMMARIZATION_PROMPT + "\nPrevious Conversations: {}".format(
|
|
|
125 |
|
126 |
# Other constants
|
127 |
FIRST_MESSAGE = "Hey"
|
128 |
+
USER_PREFERENCE_SUMMARY = "true"
|
129 |
DEBUG = False
|
130 |
API_TYPE = "together"
|
131 |
assert API_TYPE in ["together", "local", "debug"], "The API should be either 'together' or 'local'"
|
|
|
266 |
# exp_id = 1 => No personalization
|
267 |
if exp_id == 1:
|
268 |
return system_instruction
|
269 |
+
if summary== "true":
|
270 |
if user_preference_elicitation_data["summary_history"] == "":
|
271 |
# Format prompt
|
272 |
summarization_prompt = SUMMARIZATION_PROMPT + "\nPrevious Conversations: {}".format(
|