Tristan Thrush commited on
Commit
1a555d0
1 Parent(s): 963adc8
Files changed (1) hide show
  1. app.py +4 -3
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 at HIT to mturk. But
132
  // _store_in_huggingface_dataset will still store their example in
133
- // our dataset without an assignmentId.
134
- window.location.href = "https://huggingface.co/spaces/Tristan/dadc";
 
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
  """