akryldigital commited on
Commit
831cf13
Β·
verified Β·
1 Parent(s): 8255eb2

replace width='stretch' with use_container_width=True

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -457,7 +457,7 @@ def main():
457
  )
458
 
459
  with col2:
460
- send_button = st.button("Send", key="send_button", width='stretch')
461
 
462
  # Clear chat button
463
  if st.button("πŸ—‘οΈ Clear Chat", key="clear_chat_button"):
@@ -724,7 +724,7 @@ def main():
724
 
725
  submitted = st.form_submit_button(
726
  "πŸ“€ Submit Feedback",
727
- width='stretch',
728
  disabled=submit_disabled
729
  )
730
 
@@ -892,7 +892,7 @@ def main():
892
  st.success("βœ… Feedback already submitted for this conversation!")
893
  col1, col2 = st.columns([1, 1])
894
  with col1:
895
- if st.button("πŸ”„ Submit New Feedback", key="new_feedback_button", width='stretch'):
896
  try:
897
  st.session_state.feedback_submitted = False
898
  st.rerun()
@@ -901,7 +901,7 @@ def main():
901
  logger.error(f"Error resetting feedback state: {e}")
902
  st.error(f"Error resetting feedback. Please refresh the page.")
903
  with col2:
904
- if st.button("πŸ“‹ View Conversation", key="view_conversation_button", width='stretch'):
905
  # Scroll to conversation - this is handled by the auto-scroll at bottom
906
  pass
907
 
@@ -1035,7 +1035,7 @@ def main():
1035
  st.markdown(f"**Example:** `{example_q1}`")
1036
  st.info("πŸ’‘ **Filter to apply:** Select a Filename from the sidebar panel before asking this question.")
1037
  with col2:
1038
- if st.button("πŸ“‹ Use This Question", key="use_example_1", width='stretch'):
1039
  st.session_state.pending_question = example_q1
1040
  st.session_state.input_counter = (st.session_state.get('input_counter', 0) + 1) % 1000
1041
  st.rerun()
@@ -1056,7 +1056,7 @@ def main():
1056
  )
1057
  col1, col2 = st.columns([1, 4])
1058
  with col1:
1059
- if st.button("πŸ“‹ Use Question 2", key="use_custom_1", width='stretch'):
1060
  if custom_q1.strip():
1061
  st.session_state.pending_question = custom_q1.strip()
1062
  st.session_state.custom_question_1 = custom_q1.strip()
@@ -1082,7 +1082,7 @@ def main():
1082
  )
1083
  col1, col2 = st.columns([1, 4])
1084
  with col1:
1085
- if st.button("πŸ“‹ Use Question 3", key="use_custom_2", width='stretch'):
1086
  if custom_q2.strip():
1087
  st.session_state.pending_question = custom_q2.strip()
1088
  st.session_state.custom_question_2 = custom_q2.strip()
 
457
  )
458
 
459
  with col2:
460
+ send_button = st.button("Send", key="send_button", use_container_width=True)
461
 
462
  # Clear chat button
463
  if st.button("πŸ—‘οΈ Clear Chat", key="clear_chat_button"):
 
724
 
725
  submitted = st.form_submit_button(
726
  "πŸ“€ Submit Feedback",
727
+ use_container_width=True,
728
  disabled=submit_disabled
729
  )
730
 
 
892
  st.success("βœ… Feedback already submitted for this conversation!")
893
  col1, col2 = st.columns([1, 1])
894
  with col1:
895
+ if st.button("πŸ”„ Submit New Feedback", key="new_feedback_button", use_container_width=True):
896
  try:
897
  st.session_state.feedback_submitted = False
898
  st.rerun()
 
901
  logger.error(f"Error resetting feedback state: {e}")
902
  st.error(f"Error resetting feedback. Please refresh the page.")
903
  with col2:
904
+ if st.button("πŸ“‹ View Conversation", key="view_conversation_button", use_container_width=True):
905
  # Scroll to conversation - this is handled by the auto-scroll at bottom
906
  pass
907
 
 
1035
  st.markdown(f"**Example:** `{example_q1}`")
1036
  st.info("πŸ’‘ **Filter to apply:** Select a Filename from the sidebar panel before asking this question.")
1037
  with col2:
1038
+ if st.button("πŸ“‹ Use This Question", key="use_example_1", use_container_width=True):
1039
  st.session_state.pending_question = example_q1
1040
  st.session_state.input_counter = (st.session_state.get('input_counter', 0) + 1) % 1000
1041
  st.rerun()
 
1056
  )
1057
  col1, col2 = st.columns([1, 4])
1058
  with col1:
1059
+ if st.button("πŸ“‹ Use Question 2", key="use_custom_1", use_container_width=True):
1060
  if custom_q1.strip():
1061
  st.session_state.pending_question = custom_q1.strip()
1062
  st.session_state.custom_question_1 = custom_q1.strip()
 
1082
  )
1083
  col1, col2 = st.columns([1, 4])
1084
  with col1:
1085
+ if st.button("πŸ“‹ Use Question 3", key="use_custom_2", use_container_width=True):
1086
  if custom_q2.strip():
1087
  st.session_state.pending_question = custom_q2.strip()
1088
  st.session_state.custom_question_2 = custom_q2.strip()