Douwe Kiela commited on
Commit
305a351
1 Parent(s): 1634d0f

Try to fix iframe embedding issue

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. collect.py +2 -1
app.py CHANGED
@@ -79,4 +79,4 @@ with demo:
79
  _js="function(state, dummy) { return [state, window.location.search]; }",
80
  )
81
 
82
- demo.launch()
 
79
  _js="function(state, dummy) { return [state, window.location.search]; }",
80
  )
81
 
82
+ demo.launch(favicon_path="https://huggingface.co/favicon.ico")
collect.py CHANGED
@@ -17,8 +17,9 @@ mturk = boto3.client(
17
  endpoint_url=MTURK_SANDBOX,
18
  )
19
 
 
20
  question = ExternalQuestion(
21
- "https://huggingface.co/spaces/douwekiela/dadc", frame_height=600
22
  )
23
 
24
  new_hit = mturk.create_hit(
 
17
  endpoint_url=MTURK_SANDBOX,
18
  )
19
 
20
+ # The + in the URL makes the Space easily embeddable in an iframe
21
  question = ExternalQuestion(
22
+ "https://huggingface.co/spaces/douwekiela/dadc/+", frame_height=600
23
  )
24
 
25
  new_hit = mturk.create_hit(