Spaces:
Sleeping
Sleeping
Ara Yeroyan
commited on
Commit
Β·
f8a1d41
1
Parent(s):
72eb0bf
fix use_container_width=False
Browse files
app.py
CHANGED
|
@@ -774,7 +774,7 @@ def main():
|
|
| 774 |
st.success("β
Feedback already submitted for this conversation!")
|
| 775 |
col1, col2 = st.columns([1, 1])
|
| 776 |
with col1:
|
| 777 |
-
if st.button("π Submit New Feedback", key="new_feedback_button",
|
| 778 |
try:
|
| 779 |
st.session_state.feedback_submitted = False
|
| 780 |
st.rerun()
|
|
@@ -783,7 +783,7 @@ def main():
|
|
| 783 |
logger.error(f"Error resetting feedback state: {e}")
|
| 784 |
st.error(f"Error resetting feedback. Please refresh the page.")
|
| 785 |
with col2:
|
| 786 |
-
if st.button("π View Conversation", key="view_conversation_button",
|
| 787 |
# Scroll to conversation - this is handled by the auto-scroll at bottom
|
| 788 |
pass
|
| 789 |
|
|
@@ -917,7 +917,7 @@ def main():
|
|
| 917 |
st.markdown(f"**Example:** `{example_q1}`")
|
| 918 |
st.info("π‘ **Filter to apply:** Select a Filename from the sidebar panel before asking this question.")
|
| 919 |
with col2:
|
| 920 |
-
if st.button("π Use This Question", key="use_example_1",
|
| 921 |
st.session_state.pending_question = example_q1
|
| 922 |
st.session_state.input_counter = (st.session_state.get('input_counter', 0) + 1) % 1000
|
| 923 |
st.rerun()
|
|
@@ -938,7 +938,7 @@ def main():
|
|
| 938 |
)
|
| 939 |
col1, col2 = st.columns([1, 4])
|
| 940 |
with col1:
|
| 941 |
-
if st.button("π Use Question 2", key="use_custom_1",
|
| 942 |
if custom_q1.strip():
|
| 943 |
st.session_state.pending_question = custom_q1.strip()
|
| 944 |
st.session_state.custom_question_1 = custom_q1.strip()
|
|
@@ -964,7 +964,7 @@ def main():
|
|
| 964 |
)
|
| 965 |
col1, col2 = st.columns([1, 4])
|
| 966 |
with col1:
|
| 967 |
-
if st.button("π Use Question 3", key="use_custom_2",
|
| 968 |
if custom_q2.strip():
|
| 969 |
st.session_state.pending_question = custom_q2.strip()
|
| 970 |
st.session_state.custom_question_2 = custom_q2.strip()
|
|
|
|
| 774 |
st.success("β
Feedback already submitted for this conversation!")
|
| 775 |
col1, col2 = st.columns([1, 1])
|
| 776 |
with col1:
|
| 777 |
+
if st.button("π Submit New Feedback", key="new_feedback_button", width='stretch'):
|
| 778 |
try:
|
| 779 |
st.session_state.feedback_submitted = False
|
| 780 |
st.rerun()
|
|
|
|
| 783 |
logger.error(f"Error resetting feedback state: {e}")
|
| 784 |
st.error(f"Error resetting feedback. Please refresh the page.")
|
| 785 |
with col2:
|
| 786 |
+
if st.button("π View Conversation", key="view_conversation_button", width='stretch'):
|
| 787 |
# Scroll to conversation - this is handled by the auto-scroll at bottom
|
| 788 |
pass
|
| 789 |
|
|
|
|
| 917 |
st.markdown(f"**Example:** `{example_q1}`")
|
| 918 |
st.info("π‘ **Filter to apply:** Select a Filename from the sidebar panel before asking this question.")
|
| 919 |
with col2:
|
| 920 |
+
if st.button("π Use This Question", key="use_example_1", width='stretch'):
|
| 921 |
st.session_state.pending_question = example_q1
|
| 922 |
st.session_state.input_counter = (st.session_state.get('input_counter', 0) + 1) % 1000
|
| 923 |
st.rerun()
|
|
|
|
| 938 |
)
|
| 939 |
col1, col2 = st.columns([1, 4])
|
| 940 |
with col1:
|
| 941 |
+
if st.button("π Use Question 2", key="use_custom_1", width='stretch'):
|
| 942 |
if custom_q1.strip():
|
| 943 |
st.session_state.pending_question = custom_q1.strip()
|
| 944 |
st.session_state.custom_question_1 = custom_q1.strip()
|
|
|
|
| 964 |
)
|
| 965 |
col1, col2 = st.columns([1, 4])
|
| 966 |
with col1:
|
| 967 |
+
if st.button("π Use Question 3", key="use_custom_2", width='stretch'):
|
| 968 |
if custom_q2.strip():
|
| 969 |
st.session_state.pending_question = custom_q2.strip()
|
| 970 |
st.session_state.custom_question_2 = custom_q2.strip()
|