Tristan Thrush commited on
Commit
029862d
1 Parent(s): cb0f204
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,7 +87,7 @@ with demo:
87
  # The HIT is also stored and logged on mturk when post_hit_js is run below.
88
  # This _store_in_huggingface_dataset function just demonstrates how easy it is
89
  # to automatically create a Hugging Face dataset from mturk.
90
- def _store_in_huggingface_dataset(state, dummy):
91
  with open(DATA_FILE, "a") as jsonlfile:
92
  jsonlfile.write(json.dumps(state))
93
  repo.push_to_hub()
@@ -127,7 +127,7 @@ with demo:
127
  _store_in_huggingface_dataset,
128
  inputs=[state],
129
  outputs=None,
130
- #_js=post_hit_js,
131
  )
132
 
133
  demo.launch()
 
87
  # The HIT is also stored and logged on mturk when post_hit_js is run below.
88
  # This _store_in_huggingface_dataset function just demonstrates how easy it is
89
  # to automatically create a Hugging Face dataset from mturk.
90
+ def _store_in_huggingface_dataset(state):
91
  with open(DATA_FILE, "a") as jsonlfile:
92
  jsonlfile.write(json.dumps(state))
93
  repo.push_to_hub()
 
127
  _store_in_huggingface_dataset,
128
  inputs=[state],
129
  outputs=None,
130
+ _js=post_hit_js,
131
  )
132
 
133
  demo.launch()