Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
•
3b69f3d
1
Parent(s):
d876d62
added html question
Browse files
app.py
CHANGED
@@ -64,9 +64,12 @@ with demo:
|
|
64 |
# Update the URL below to switch from Sandbox to real data collection
|
65 |
def _submit(state, dummy):
|
66 |
query = parse_qs(dummy[1:])
|
|
|
67 |
assert "assignmentId" in query, "No assignment ID provided, unable to submit"
|
68 |
state["assignmentId"] = query["assignmentId"]
|
69 |
url = "https://workersandbox.mturk.com/mturk/htmlSubmit"
|
|
|
|
|
70 |
return requests.post(url, data=state)
|
71 |
|
72 |
# Button event handlers
|
|
|
64 |
# Update the URL below to switch from Sandbox to real data collection
|
65 |
def _submit(state, dummy):
|
66 |
query = parse_qs(dummy[1:])
|
67 |
+
gr.Markdown("trying submit hit")
|
68 |
assert "assignmentId" in query, "No assignment ID provided, unable to submit"
|
69 |
state["assignmentId"] = query["assignmentId"]
|
70 |
url = "https://workersandbox.mturk.com/mturk/htmlSubmit"
|
71 |
+
gr.Markdown(state["assignmentId"])
|
72 |
+
gr.Markdown("Submitting hit")
|
73 |
return requests.post(url, data=state)
|
74 |
|
75 |
# Button event handlers
|