Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
•
d073ff1
1
Parent(s):
1bffe1a
debug
Browse files
app.py
CHANGED
@@ -66,8 +66,8 @@ with demo:
|
|
66 |
query = parse_qs(dummy[1:])
|
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
|
71 |
return str(x) + " With assignmentId " + state["assignmentId"] + "\n" + x.text, state, dummy
|
72 |
|
73 |
# Button event handlers
|
|
|
66 |
query = parse_qs(dummy[1:])
|
67 |
assert "assignmentId" in query, "No assignment ID provided, unable to submit"
|
68 |
state["assignmentId"] = query["assignmentId"][0]
|
69 |
+
url = f"https://workersandbox.mturk.com/mturk/externalSubmit?assignmentId={state["assignmentId"]}&colorChoice=blue"
|
70 |
+
x = requests.post(url)
|
71 |
return str(x) + " With assignmentId " + state["assignmentId"] + "\n" + x.text, state, dummy
|
72 |
|
73 |
# Button event handlers
|