From c963d424951812fda4030cc174aba6f1ff04d906 Mon Sep 17 00:00:00 2001 From: sean1832 Date: Mon, 27 Mar 2023 03:09:18 +1100 Subject: [PATCH] chore: remove unused code --- src/SumGPT.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SumGPT.py b/src/SumGPT.py index 65c71ef..e3f7167 100644 --- a/src/SumGPT.py +++ b/src/SumGPT.py @@ -14,7 +14,6 @@ file_handler = st.container() content_handler = st.container() result_handler = st.container() -output_handler = st.container() with app_header: st.title("📝 SumGPT") @@ -86,16 +85,13 @@ # max tokens exceeded warning exceeded = util.exceeded_token_handler(param=st.session_state['OPENAI_PARAMS'], chunks=chunks) - print(f"OPENAI_API_KEY:{st.session_state['OPENAI_API_KEY']}") - print(f"previous result: {st.session_state['PREVIOUS_RESULTS']}") - + # load cached results if st.session_state['PREVIOUS_RESULTS'] is not None: rec_responses = st.session_state['PREVIOUS_RESULTS']['rec_responses'] rec_id = st.session_state['PREVIOUS_RESULTS']['rec_ids'] final_response = st.session_state['PREVIOUS_RESULTS']['final_response'] finish_reason_rec = st.session_state['PREVIOUS_RESULTS']['finish_reason_rec'] finish_reason_final = st.session_state['PREVIOUS_RESULTS']['finish_reason_final'] - else: rec_responses = None rec_id = None