Streamlit with pyautogui Screenshots

Hi there, I’m facing the following issues which I believe is related to taking screenshots via streamlit for my project. Doesn’t seem to be working but locally is fine. Hope to seek some advise in this community. Thanks!