Streamlit.script_run_context() gone with 1.8?

I have the same problem, it breaks this code here: