David Pomerenke commited on
Commit
f0b789d
·
1 Parent(s): de59e09

Try url param sync

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -580,6 +580,10 @@ if (lang) {
580
  console.log("redirecting to " + lang);
581
  window.location.href = "/" + lang;
582
  }
 
 
 
 
583
  </script>
584
  """
585
 
@@ -757,7 +761,7 @@ with gr.Blocks(title="AI Language Proficiency Benchmark", css=css, head=shortcut
757
  )
758
 
759
 
760
- for lang in tqdm(languages[:5], desc="Generating pages"):
761
  with demo.route(lang['language_name'], f"/{lang['bcp_47']}"):
762
  gr.Markdown(f"## {lang['language_name']}")
763
 
 
580
  console.log("redirecting to " + lang);
581
  window.location.href = "/" + lang;
582
  }
583
+ window.parent.postMessage({
584
+ "?test",
585
+ "#hash",
586
+ }, "https://huggingface.co");
587
  </script>
588
  """
589
 
 
761
  )
762
 
763
 
764
+ for lang in tqdm(languages[:10], desc="Generating pages"):
765
  with demo.route(lang['language_name'], f"/{lang['bcp_47']}"):
766
  gr.Markdown(f"## {lang['language_name']}")
767