diff --git a/ui/webapp.py b/ui/webapp.py index 1ddaeae4a..85904cd57 100644 --- a/ui/webapp.py +++ b/ui/webapp.py @@ -164,7 +164,7 @@ Ask any question on this topic and see if Haystack can find the correct answer t st.session_state.random_question_requested = True # Re-runs the script setting the random question as the textbox value # Unfortunately necessary as the Random Question button is _below_ the textbox - raise st.script_runner.RerunException(st.script_request_queue.RerunData(None)) + raise st.scriptrunner.script_runner.RerunException(st.scriptrunner.script_requests.RerunData(None)) st.session_state.random_question_requested = False run_query = (