Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,14 +116,14 @@ def reset_conversation():
|
|
| 116 |
models =[key for key in model_links.keys()]
|
| 117 |
|
| 118 |
# Create the sidebar with the dropdown for model selection
|
| 119 |
-
selected_model = st.sidebar.selectbox("Select Model", models)
|
| 120 |
|
| 121 |
#Create a temperature slider
|
| 122 |
-
temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0, (0.1))
|
| 123 |
|
| 124 |
|
| 125 |
#Add reset button to clear conversation
|
| 126 |
-
st.sidebar.button('Reset Chat', on_click=reset_conversation) #Reset button
|
| 127 |
|
| 128 |
|
| 129 |
# Create model description
|
|
@@ -177,7 +177,7 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ready for a short intervie
|
|
| 177 |
st.markdown(prompt)
|
| 178 |
# Add user message to chat history
|
| 179 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 180 |
-
st.session_state.messages.append({"role": "assistant", "content": "Ask
|
| 181 |
|
| 182 |
# Display assistant response in chat message container
|
| 183 |
with st.chat_message("assistant"):
|
|
|
|
| 116 |
models =[key for key in model_links.keys()]
|
| 117 |
|
| 118 |
# Create the sidebar with the dropdown for model selection
|
| 119 |
+
#selected_model = st.sidebar.selectbox("Select Model", models)
|
| 120 |
|
| 121 |
#Create a temperature slider
|
| 122 |
+
#temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0, (0.1))
|
| 123 |
|
| 124 |
|
| 125 |
#Add reset button to clear conversation
|
| 126 |
+
#st.sidebar.button('Reset Chat', on_click=reset_conversation) #Reset button
|
| 127 |
|
| 128 |
|
| 129 |
# Create model description
|
|
|
|
| 177 |
st.markdown(prompt)
|
| 178 |
# Add user message to chat history
|
| 179 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 180 |
+
st.session_state.messages.append({"role": "assistant", "content": "Ask a single question each time, related to well being and mental health."})
|
| 181 |
|
| 182 |
# Display assistant response in chat message container
|
| 183 |
with st.chat_message("assistant"):
|