diff --git a/src/SumGPT.py b/src/SumGPT.py index 8a55521..bdc334e 100644 --- a/src/SumGPT.py +++ b/src/SumGPT.py @@ -94,8 +94,9 @@ if st.button("🚀 Run", disabled=exceeded): start_time = time.time() st.cache_data.clear() + util.clear_cache('summary') API_KEY = st.session_state['OPENAI_API_KEY'] - if not API_KEY and GPT.misc.validate_api_key(API_KEY): + if not API_KEY and not GPT.misc.validate_api_key(API_KEY): st.error("❌ Please enter a valid [OpenAI API key](https://beta.openai.com/account/api-keys).") else: with st.spinner("Summarizing... (this might take a while)"):