Spaces:
Running
Running
github-actions
commited on
Commit
•
5bb4f4a
1
Parent(s):
fe4e974
Sync updates from source repository
Browse files
app.py
CHANGED
@@ -84,18 +84,6 @@ def launch_bot():
|
|
84 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
85 |
with st.chat_message("user"):
|
86 |
st.write(prompt)
|
87 |
-
|
88 |
-
# Example prompt
|
89 |
-
for i, example in enumerate(example_messages):
|
90 |
-
button_pressed = False
|
91 |
-
with ex_cols[i]:
|
92 |
-
if st.button(example):
|
93 |
-
st.session_state.ex_prompt = example
|
94 |
-
|
95 |
-
if button_pressed:
|
96 |
-
st.session_state.messages.append({"role": "user", "content": prompt})
|
97 |
-
with st.chat_message("user"):
|
98 |
-
st.write(prompt)
|
99 |
|
100 |
# Generate a new response if last message is not from assistant
|
101 |
if st.session_state.messages[-1]["role"] != "assistant":
|
|
|
84 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
85 |
with st.chat_message("user"):
|
86 |
st.write(prompt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
# Generate a new response if last message is not from assistant
|
89 |
if st.session_state.messages[-1]["role"] != "assistant":
|