Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,12 +86,12 @@ def push_results_to_hub(user_answers, token: gr.OAuthToken | None):
|
|
86 |
gr.Warning(
|
87 |
f"Score {grade:.1%} below passing threshold of {float(EXAM_PASSING_SCORE):.1%}"
|
88 |
)
|
89 |
-
return
|
90 |
|
91 |
gr.Info("Submitting answers to the Hub. Please wait...", duration=2)
|
92 |
|
93 |
user_info = whoami(token=token.token)
|
94 |
-
repo_id = f"{EXAM_DATASET_ID}
|
95 |
# TODO:
|
96 |
# check if username already has "username.parquet" in the dataset and download that (or read values directly from dataset viewer if possible)
|
97 |
# instead of replacing the values check if the new score is better than the old one
|
|
|
86 |
gr.Warning(
|
87 |
f"Score {grade:.1%} below passing threshold of {float(EXAM_PASSING_SCORE):.1%}"
|
88 |
)
|
89 |
+
return
|
90 |
|
91 |
gr.Info("Submitting answers to the Hub. Please wait...", duration=2)
|
92 |
|
93 |
user_info = whoami(token=token.token)
|
94 |
+
repo_id = f"{EXAM_DATASET_ID}_student_scores"
|
95 |
# TODO:
|
96 |
# check if username already has "username.parquet" in the dataset and download that (or read values directly from dataset viewer if possible)
|
97 |
# instead of replacing the values check if the new score is better than the old one
|