update
Browse files
app.py
CHANGED
@@ -60,14 +60,7 @@ def reset_conversation():
|
|
60 |
st.session_state.messages = []
|
61 |
return None
|
62 |
|
63 |
-
if "prev_option" not in st.session_state:
|
64 |
-
st.session_state.prev_option = selected_model
|
65 |
|
66 |
-
if st.session_state.prev_option != selected_model:
|
67 |
-
st.session_state.messages = []
|
68 |
-
st.write(f"Changed to {selected_model}")
|
69 |
-
st.session_state.prev_option = selected_model
|
70 |
-
reset_conversation()
|
71 |
|
72 |
|
73 |
# Define the available models
|
@@ -90,6 +83,20 @@ st.sidebar.markdown(model_info[selected_model]['description'])
|
|
90 |
st.sidebar.image(model_info[selected_model]['logo'])
|
91 |
st.sidebar.markdown("*Generated content may be inaccurate or false.*")
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
#Pull in the model we want to use
|
94 |
repo_id = model_links[selected_model]
|
95 |
|
|
|
60 |
st.session_state.messages = []
|
61 |
return None
|
62 |
|
|
|
|
|
63 |
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
|
66 |
# Define the available models
|
|
|
83 |
st.sidebar.image(model_info[selected_model]['logo'])
|
84 |
st.sidebar.markdown("*Generated content may be inaccurate or false.*")
|
85 |
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
if "prev_option" not in st.session_state:
|
90 |
+
st.session_state.prev_option = selected_model
|
91 |
+
|
92 |
+
if st.session_state.prev_option != selected_model:
|
93 |
+
st.session_state.messages = []
|
94 |
+
st.write(f"Changed to {selected_model}")
|
95 |
+
st.session_state.prev_option = selected_model
|
96 |
+
reset_conversation()
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
#Pull in the model we want to use
|
101 |
repo_id = model_links[selected_model]
|
102 |
|