Spaces:
Sleeping
Sleeping
replace width='stretch' with use_container_width=True
Browse files
app.py
CHANGED
|
@@ -457,7 +457,7 @@ def main():
|
|
| 457 |
)
|
| 458 |
|
| 459 |
with col2:
|
| 460 |
-
send_button = st.button("Send", key="send_button",
|
| 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 |
-
|
| 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",
|
| 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",
|
| 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",
|
| 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",
|
| 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",
|
| 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()
|