github-actions commited on
Commit
b8f1cc7
1 Parent(s): 5bb4f4a

Sync updates from source repository

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -68,7 +68,11 @@ def launch_bot():
68
  if len(example_messages) > 0:
69
  st.markdown("<h6>Queries To Try:</h6>", unsafe_allow_html=True)
70
  ex_cols = st.columns(max_examples)
71
-
 
 
 
 
72
  # Display chat messages
73
  for message in st.session_state.messages:
74
  with st.chat_message(message["role"]):
 
68
  if len(example_messages) > 0:
69
  st.markdown("<h6>Queries To Try:</h6>", unsafe_allow_html=True)
70
  ex_cols = st.columns(max_examples)
71
+ for i, example in enumerate(example_messages):
72
+ with ex_cols[i]:
73
+ if st.button(example):
74
+ st.session_state.ex_prompt = example
75
+
76
  # Display chat messages
77
  for message in st.session_state.messages:
78
  with st.chat_message(message["role"]):