zakerytclarke commited on
Commit
4e256cd
·
verified ·
1 Parent(s): f1ebe90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -336,13 +336,21 @@ def main():
336
  choice2 = random.choice(list2)
337
  choice3 = random.choice(list3)
338
  s1, s2, s3 = st.columns([1, 2, 3])
 
339
  with s1:
340
- user_input = suggestion_button(choice1) or user_input
 
 
 
341
  with s2:
 
342
  user_input = suggestion_button(choice2) or user_input
 
 
343
  with s3:
 
344
  user_input = suggestion_button(choice3) or user_input
345
-
346
  if user_input:
347
  with st.spinner('Generating Response...'):
348
  response = handle_chat(user_prompt, user_input, teapot_ai)
 
336
  choice2 = random.choice(list2)
337
  choice3 = random.choice(list3)
338
  s1, s2, s3 = st.columns([1, 2, 3])
339
+
340
  with s1:
341
+ st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
342
+ user_input = suggestion_button(choice1) or None
343
+ st.markdown("</div>", unsafe_allow_html=True)
344
+
345
  with s2:
346
+ st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
347
  user_input = suggestion_button(choice2) or user_input
348
+ st.markdown("</div>", unsafe_allow_html=True)
349
+
350
  with s3:
351
+ st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
352
  user_input = suggestion_button(choice3) or user_input
353
+ st.markdown("</div>", unsafe_allow_html=True)
354
  if user_input:
355
  with st.spinner('Generating Response...'):
356
  response = handle_chat(user_prompt, user_input, teapot_ai)