Update app.py
Browse files
app.py
CHANGED
|
@@ -47,10 +47,8 @@ def ask_assistant_stream(st_model, st_messages, st_temp_value, st_max_tokens):
|
|
| 47 |
|
| 48 |
return response
|
| 49 |
|
| 50 |
-
# Define the available models
|
| 51 |
models =[key for key in model_links.keys()]
|
| 52 |
-
|
| 53 |
-
# Create the sidebar with the dropdown for model selection
|
| 54 |
selected_model = st.sidebar.selectbox("Select Model", models)
|
| 55 |
|
| 56 |
# Create a temperature slider
|
|
@@ -76,14 +74,13 @@ if "prev_option" not in st.session_state:
|
|
| 76 |
# reset_conversation()
|
| 77 |
|
| 78 |
#Pull in the model we want to use
|
| 79 |
-
repo_id = model_links[selected_model]
|
| 80 |
|
| 81 |
st.subheader(f'{selected_model}')
|
| 82 |
-
# # st.title(f'ChatBot Using {selected_model}')
|
| 83 |
|
| 84 |
# Set a default model
|
| 85 |
-
if selected_model not in st.session_state:
|
| 86 |
-
st.session_state[selected_model] = model_links[selected_model]
|
| 87 |
|
| 88 |
# Initialize chat history
|
| 89 |
if "messages" not in st.session_state:
|
|
|
|
| 47 |
|
| 48 |
return response
|
| 49 |
|
| 50 |
+
# Define the available models & Create the sidebar with the dropdown for model selection
|
| 51 |
models =[key for key in model_links.keys()]
|
|
|
|
|
|
|
| 52 |
selected_model = st.sidebar.selectbox("Select Model", models)
|
| 53 |
|
| 54 |
# Create a temperature slider
|
|
|
|
| 74 |
# reset_conversation()
|
| 75 |
|
| 76 |
#Pull in the model we want to use
|
| 77 |
+
#repo_id = model_links[selected_model]
|
| 78 |
|
| 79 |
st.subheader(f'{selected_model}')
|
|
|
|
| 80 |
|
| 81 |
# Set a default model
|
| 82 |
+
#if selected_model not in st.session_state:
|
| 83 |
+
# st.session_state[selected_model] = model_links[selected_model]
|
| 84 |
|
| 85 |
# Initialize chat history
|
| 86 |
if "messages" not in st.session_state:
|