Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,6 +127,7 @@ with col3:
|
|
127 |
options=list(prompts.keys()),
|
128 |
format_func=lambda x: x,
|
129 |
index=0,
|
|
|
130 |
)
|
131 |
|
132 |
# Display chat messages from history on app rerun
|
@@ -179,7 +180,7 @@ if prompt := st.chat_input("Enter your prompt here..."):
|
|
179 |
)
|
180 |
|
181 |
if prompt := prompts.get(prompt_selection):
|
182 |
-
|
183 |
|
184 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
185 |
with st.chat_message("user", avatar="❓"):
|
|
|
127 |
options=list(prompts.keys()),
|
128 |
format_func=lambda x: x,
|
129 |
index=0,
|
130 |
+
key="prompt_selectbox"
|
131 |
)
|
132 |
|
133 |
# Display chat messages from history on app rerun
|
|
|
180 |
)
|
181 |
|
182 |
if prompt := prompts.get(prompt_selection):
|
183 |
+
st.session_state.prompt_selectbox = "none"
|
184 |
|
185 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
186 |
with st.chat_message("user", avatar="❓"):
|