TTsamurai
commited on
Commit
·
63a0b58
1
Parent(s):
b324c8a
make the value consistent
Browse files
app.py
CHANGED
@@ -245,7 +245,7 @@ def add_user_profile_to_system_instruction(
|
|
245 |
summ, _ = generate_response_debugging(summarization_instruction)
|
246 |
user_preference_elicitation_data["summary_history"] = summ
|
247 |
# log_action(user_id, "Prompt", "Preference Elicitation Summarization", summ)
|
248 |
-
save_feedback(user_id, uuid_this_session, "Preference_Elicitation_Summarization", summ)
|
249 |
# print(f"Preference Summary:{summ}")
|
250 |
system_instruction += f"\nPrevious Conversations with the Customer about the User Profile: {user_preference_elicitation_data['summary_history']}\n"
|
251 |
else:
|
@@ -859,6 +859,7 @@ def create_demo():
|
|
859 |
def respond_evaluation(user_id, tab_data, evals, tab_name):
|
860 |
|
861 |
# dropdown, readon_button, multi-evaluator
|
|
|
862 |
save_feedback(user_id, uuid_this_session, "Round_Evaluation", evals)
|
863 |
# log_action(user_id, tab_name, "Round Evaluation", "Following")
|
864 |
# for key, value in evals.items():
|
|
|
245 |
summ, _ = generate_response_debugging(summarization_instruction)
|
246 |
user_preference_elicitation_data["summary_history"] = summ
|
247 |
# log_action(user_id, "Prompt", "Preference Elicitation Summarization", summ)
|
248 |
+
save_feedback(user_id, uuid_this_session, "Preference_Elicitation_Summarization", {"summarization": summ})
|
249 |
# print(f"Preference Summary:{summ}")
|
250 |
system_instruction += f"\nPrevious Conversations with the Customer about the User Profile: {user_preference_elicitation_data['summary_history']}\n"
|
251 |
else:
|
|
|
859 |
def respond_evaluation(user_id, tab_data, evals, tab_name):
|
860 |
|
861 |
# dropdown, readon_button, multi-evaluator
|
862 |
+
print(f"Tab: {tab_name}\nEvaluation: {evals}")
|
863 |
save_feedback(user_id, uuid_this_session, "Round_Evaluation", evals)
|
864 |
# log_action(user_id, tab_name, "Round Evaluation", "Following")
|
865 |
# for key, value in evals.items():
|