Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
•
1a555d0
1
Parent(s):
963adc8
bugfix
Browse files
app.py
CHANGED
@@ -128,10 +128,11 @@ with demo:
|
|
128 |
return [state];
|
129 |
} else {
|
130 |
// If there is no assignmentId, then we assume that the submitter is
|
131 |
-
// on huggingface.co and we can't submit
|
132 |
// _store_in_huggingface_dataset will still store their example in
|
133 |
-
// our dataset without an assignmentId.
|
134 |
-
|
|
|
135 |
}
|
136 |
}
|
137 |
"""
|
|
|
128 |
return [state];
|
129 |
} else {
|
130 |
// If there is no assignmentId, then we assume that the submitter is
|
131 |
+
// on huggingface.co and we can't submit a HIT to mturk. But
|
132 |
// _store_in_huggingface_dataset will still store their example in
|
133 |
+
// our dataset without an assignmentId. We call reload() here
|
134 |
+
// to reset the app so the user can enter in another "fake" HIT.
|
135 |
+
document.location.reload();
|
136 |
}
|
137 |
}
|
138 |
"""
|