C-KLex / Phraends

NLP Application for Summarizing Finance Article
0 stars 0 forks source link

Avoid Multiple Run #38

Closed YLee2121 closed 10 months ago

YLee2121 commented 10 months ago

In the NEWS tab crawling function, if I tap the run buttons multiple times, the computer will initiate multiple crawling sessions. This is a potential risk of crash.

As anyone, I want to have a run button lock, so the button will be unavailable if there is a crawling happening.

I've done some research, and the best way to achieve this is to use st.session_state, link. The st.session_state will store the variable and reflect on the view whenever it's changed or triggered.

@alex308248 could you help with this user story