Spaces:
Sleeping
Sleeping
TTsamurai
commited on
Commit
·
914c34e
1
Parent(s):
a4f70c9
update
Browse files
app.py
CHANGED
|
@@ -62,6 +62,7 @@ scheduler = CommitScheduler(
|
|
| 62 |
repo_type="dataset",
|
| 63 |
folder_path=feedback_folder,
|
| 64 |
path_in_repo="data",
|
|
|
|
| 65 |
every=10,
|
| 66 |
)
|
| 67 |
|
|
@@ -899,7 +900,18 @@ def create_demo():
|
|
| 899 |
<strong>Please make sure that you are not ranking the same stock multiple times.</strong>
|
| 900 |
</div>"""
|
| 901 |
else:
|
| 902 |
-
save_feedback(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 903 |
# log_action(user_id, "Final_Ranking", first_comp, ranking_first_comp)
|
| 904 |
# log_action(user_id, "Final_Ranking", second_comp, ranking_second_comp)
|
| 905 |
# log_action(user_id, "Final_Ranking", third_comp, ranking_third_comp)
|
|
|
|
| 62 |
repo_type="dataset",
|
| 63 |
folder_path=feedback_folder,
|
| 64 |
path_in_repo="data",
|
| 65 |
+
token=os.getenv("HUGGINGFACE_HUB_TOKEN"),
|
| 66 |
every=10,
|
| 67 |
)
|
| 68 |
|
|
|
|
| 900 |
<strong>Please make sure that you are not ranking the same stock multiple times.</strong>
|
| 901 |
</div>"""
|
| 902 |
else:
|
| 903 |
+
save_feedback(
|
| 904 |
+
user_id,
|
| 905 |
+
uuid_this_session,
|
| 906 |
+
"Final_Ranking",
|
| 907 |
+
{
|
| 908 |
+
first_comp: ranking_first_comp,
|
| 909 |
+
second_comp: ranking_second_comp,
|
| 910 |
+
third_comp: ranking_third_comp,
|
| 911 |
+
fourth_comp: ranking_fourth_comp,
|
| 912 |
+
fifth_comp: ranking_fifth_comp,
|
| 913 |
+
},
|
| 914 |
+
)
|
| 915 |
# log_action(user_id, "Final_Ranking", first_comp, ranking_first_comp)
|
| 916 |
# log_action(user_id, "Final_Ranking", second_comp, ranking_second_comp)
|
| 917 |
# log_action(user_id, "Final_Ranking", third_comp, ranking_third_comp)
|