kaleidoskop-hug commited on
Commit
79898e5
1 Parent(s): 23d3ea8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -69,13 +69,11 @@ st.sidebar.markdown("*Generated content may be inaccurate or false.*")
69
  if "prev_option" not in st.session_state:
70
  st.session_state.prev_option = selected_model
71
 
72
- '''
73
- if st.session_state.prev_option != selected_model:
74
- st.session_state.messages = []
75
  # st.write(f"Changed to {selected_model}")
76
- st.session_state.prev_option = selected_model
77
- reset_conversation()
78
- '''
79
 
80
  #Pull in the model we want to use
81
  repo_id = model_links[selected_model]
@@ -147,7 +145,6 @@ if len(st.session_state.messages)>0:
147
  col1, col2 = st.columns(2)
148
  col1.button("retry", key="retry")
149
  col2.button("remove", key="remove")
150
- '''
151
- col1.button("retry", key="retryButton", on_click=retry_click)
152
- col2.button("remove", key="removeButton", on_click=remove_click)
153
- '''
 
69
  if "prev_option" not in st.session_state:
70
  st.session_state.prev_option = selected_model
71
 
72
+ #if st.session_state.prev_option != selected_model:
73
+ # st.session_state.messages = []
 
74
  # st.write(f"Changed to {selected_model}")
75
+ # st.session_state.prev_option = selected_model
76
+ # reset_conversation()
 
77
 
78
  #Pull in the model we want to use
79
  repo_id = model_links[selected_model]
 
145
  col1, col2 = st.columns(2)
146
  col1.button("retry", key="retry")
147
  col2.button("remove", key="remove")
148
+
149
+ # col1.button("retry", key="retryButton", on_click=retry_click)
150
+ # col2.button("remove", key="removeButton", on_click=remove_click)