Use a while to check if the button is pressed. The if statement wil evaluate to False, so it will just skip over it and continue. Your code should be like this:
import streamlit as st
btn = st.button("Click here")
while not btn:
pass
# modal code here
"modal"