diff --git a/qurator/sbb_ner/webapp/static/js/ner-demo.js b/qurator/sbb_ner/webapp/static/js/ner-demo.js index 0dff38e..a08f7e8 100644 --- a/qurator/sbb_ner/webapp/static/js/ner-demo.js +++ b/qurator/sbb_ner/webapp/static/js/ner-demo.js @@ -52,7 +52,7 @@ function update() { var model_id = $('#model').val(); var input_text = $('#inputtext').val() - if (input_text.length < 200) { + if (input_text.length < 30000) { var url_params = new URLSearchParams(window.location.search); @@ -60,6 +60,9 @@ function update() { window.history.replaceState({}, '', `${location.pathname}?${url_params}`); } + else { + window.history.replaceState({}, '', `${location.pathname}`); + }