Spaces:
Sleeping
Sleeping
TTsamurai
commited on
Commit
·
c7fd5dc
1
Parent(s):
1fdd9d8
change schema name
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ SYSTEM_INSTRUECTION_PREFERENCE_ELICITATION_FILE = os.path.join(
|
|
| 54 |
SUMMARIZATION_PROMPT_FILE = os.path.join(STATIC_FILE, "txt/system_summarization_user_preference_elicitation.txt")
|
| 55 |
|
| 56 |
uuid_this_session = str(uuid.uuid4())
|
| 57 |
-
feedback_file_interaction = Path("user_feedback/") / f"
|
| 58 |
feedback_file_summarization = Path("user_feedback/") / f"summarization_{uuid_this_session}.json"
|
| 59 |
feedback_file_round_evaluation = Path("user_feedback/") / f"round_evaluation_{uuid_this_session}.json"
|
| 60 |
feedback_file_final_ranking = Path("user_feedback/") / f"final_ranking_{uuid_this_session}.json"
|
|
@@ -952,11 +952,7 @@ def create_demo():
|
|
| 952 |
},
|
| 953 |
feedback_file_final_ranking,
|
| 954 |
)
|
| 955 |
-
|
| 956 |
-
# log_action(user_id, "Final_Ranking", second_comp, ranking_second_comp)
|
| 957 |
-
# log_action(user_id, "Final_Ranking", third_comp, ranking_third_comp)
|
| 958 |
-
# log_action(user_id, "Final_Ranking", fourth_comp, ranking_fourth_comp)
|
| 959 |
-
# log_action(user_id, "Final_Ranking", fifth_comp, ranking_fifth_comp)
|
| 960 |
return """<div style="background-color: #d4edda; color: #155724; padding: 15px; border: 1px solid #c3e6cb; border-radius: 5px; margin-bottom: 20px;">
|
| 961 |
<strong>Thank you for participating in the experiment. This concludes the session. You may now close the tab.</strong>
|
| 962 |
</div>"""
|
|
|
|
| 54 |
SUMMARIZATION_PROMPT_FILE = os.path.join(STATIC_FILE, "txt/system_summarization_user_preference_elicitation.txt")
|
| 55 |
|
| 56 |
uuid_this_session = str(uuid.uuid4())
|
| 57 |
+
feedback_file_interaction = Path("user_feedback/") / f"interaction_{uuid_this_session}.json"
|
| 58 |
feedback_file_summarization = Path("user_feedback/") / f"summarization_{uuid_this_session}.json"
|
| 59 |
feedback_file_round_evaluation = Path("user_feedback/") / f"round_evaluation_{uuid_this_session}.json"
|
| 60 |
feedback_file_final_ranking = Path("user_feedback/") / f"final_ranking_{uuid_this_session}.json"
|
|
|
|
| 952 |
},
|
| 953 |
feedback_file_final_ranking,
|
| 954 |
)
|
| 955 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 956 |
return """<div style="background-color: #d4edda; color: #155724; padding: 15px; border: 1px solid #c3e6cb; border-radius: 5px; margin-bottom: 20px;">
|
| 957 |
<strong>Thank you for participating in the experiment. This concludes the session. You may now close the tab.</strong>
|
| 958 |
</div>"""
|