burtenshaw
commited on
Commit
·
fea1370
1
Parent(s):
64b3fe7
limit pushed data
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def push_results_to_hub(user_answers, token: gr.OAuthToken | None):
|
|
124 |
repo_id = f"{EXAM_DATASET_ID}_student_responses"
|
125 |
submission_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
126 |
|
127 |
-
new_ds = Dataset.from_list(user_answers)
|
128 |
new_ds = new_ds.map(
|
129 |
lambda x: {
|
130 |
"username": user_info["name"],
|
|
|
124 |
repo_id = f"{EXAM_DATASET_ID}_student_responses"
|
125 |
submission_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
126 |
|
127 |
+
new_ds = Dataset.from_list([row["is_correct"] for row in user_answers])
|
128 |
new_ds = new_ds.map(
|
129 |
lambda x: {
|
130 |
"username": user_info["name"],
|