Tristan Thrush commited on
Commit
73f2dfd
1 Parent(s): a2d5fb9
Files changed (2) hide show
  1. app.py +1 -3
  2. collect.py +1 -1
app.py CHANGED
@@ -64,8 +64,6 @@ 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
- print(dummy)
68
- print(query)
69
  assert "assignment_id" in query, "No assignment ID provided, unable to submit"
70
  state["assignment_id"] = query["assignment_id"]
71
  url = "https://workersandbox.mturk.com/mturk/externalSubmit"
@@ -84,4 +82,4 @@ with demo:
84
  _js="function(state, dummy) { return [state, window.location.search]; }",
85
  )
86
 
87
- demo.launch(share=True)
 
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 "assignment_id" in query, "No assignment ID provided, unable to submit"
68
  state["assignment_id"] = query["assignment_id"]
69
  url = "https://workersandbox.mturk.com/mturk/externalSubmit"
 
82
  _js="function(state, dummy) { return [state, window.location.search]; }",
83
  )
84
 
85
+ demo.launch()
collect.py CHANGED
@@ -32,7 +32,7 @@ question = HTMLQuestion(
32
  <script type="module" crossorigin src="https://gradio.s3-us-west-2.amazonaws.com/3.0.17/gradio.js"></script>
33
  </head>
34
  <body>
35
- <gradio-app space="Tristan/dadc"></gradio-app>
36
 
37
  </body>
38
  </html>
 
32
  <script type="module" crossorigin src="https://gradio.s3-us-west-2.amazonaws.com/3.0.17/gradio.js"></script>
33
  </head>
34
  <body>
35
+ <gradio-app space="Tristan/dadc{window.location.search}"></gradio-app>
36
 
37
  </body>
38
  </html>