Tristan Thrush commited on
Commit
1bffe1a
1 Parent(s): 7a4749b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ with demo:
67
  assert "assignmentId" in query, "No assignment ID provided, unable to submit"
68
  state["assignmentId"] = query["assignmentId"][0]
69
  url = "https://workersandbox.mturk.com/mturk/externalSubmit"
70
- x = requests.post(url, data={"assignmentId": state["assignmentId"], "colorChoice": "blue"})
71
  return str(x) + " With assignmentId " + state["assignmentId"] + "\n" + x.text, state, dummy
72
 
73
  # Button event handlers
 
67
  assert "assignmentId" in query, "No assignment ID provided, unable to submit"
68
  state["assignmentId"] = query["assignmentId"][0]
69
  url = "https://workersandbox.mturk.com/mturk/externalSubmit"
70
+ x = requests.post(url, data={"assignmentId": state["assignmentId"], "colorChoice": "blue"}, headers={"Host": "https://hf.space"})
71
  return str(x) + " With assignmentId " + state["assignmentId"] + "\n" + x.text, state, dummy
72
 
73
  # Button event handlers