Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1832 committed Mar 26, 2023
1 parent a59d78e commit c963d42
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SumGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c963d42

Please sign in to comment.