ankanghosh commited on
Commit
913341a
·
verified ·
1 Parent(s): 35ffa2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -46,14 +46,6 @@ st.markdown("""
46
  overflow: hidden !important;
47
  text-overflow: ellipsis !important;
48
  }
49
-
50
- /* Form submit button specific styling */
51
- button[type="submit"],
52
- .stFormSubmit>button,
53
- [data-testid="stFormSubmitButton"]>button {
54
- background-color: #fff0f0 !important;
55
- color: #3f51b5 !important;
56
- }
57
  .stButton>button:hover {
58
  background-color: #fafbff !important;
59
  border-color: #c5cae9 !important;
@@ -109,11 +101,18 @@ div.stInfo {
109
  gap: 10px;
110
  }
111
 
112
- /* Placeholder for buttons */
113
- .button-placeholder {
114
- min-height: 38px;
115
- min-width: 120px;
116
- margin: 0 5px;
 
 
 
 
 
 
 
117
  }
118
  </style>
119
  <div class="main-title">Spirituality Q&A</div>
@@ -234,7 +233,7 @@ if st.session_state.submit_clicked and st.session_state.last_query:
234
 
235
  with st.spinner("Processing your question..."):
236
  try:
237
- result = process_query(st.session_state.last_query, top_k=top_k, word_limit=word_limit)
238
  # Mock answer for testing
239
  result = {
240
  "answer_with_rag": "🔹 This is a placeholder answer for testing UI.",
 
46
  overflow: hidden !important;
47
  text-overflow: ellipsis !important;
48
  }
 
 
 
 
 
 
 
 
49
  .stButton>button:hover {
50
  background-color: #fafbff !important;
51
  border-color: #c5cae9 !important;
 
101
  gap: 10px;
102
  }
103
 
104
+ /* Form submit button styling to match other buttons */
105
+ button[kind="formSubmit"] {
106
+ background-color: #fff0f0 !important;
107
+ color: #3f51b5 !important;
108
+ border: 1px solid #e1e4f2 !important;
109
+ border-radius: 20px !important;
110
+ padding: 8px 16px !important;
111
+ box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
112
+ }
113
+ button[kind="formSubmit"]:hover {
114
+ background-color: #fafbff !important;
115
+ border-color: #c5cae9 !important;
116
  }
117
  </style>
118
  <div class="main-title">Spirituality Q&A</div>
 
233
 
234
  with st.spinner("Processing your question..."):
235
  try:
236
+ # result = process_query(st.session_state.last_query, top_k=top_k, word_limit=word_limit)
237
  # Mock answer for testing
238
  result = {
239
  "answer_with_rag": "🔹 This is a placeholder answer for testing UI.",