SuriRaja commited on
Commit
c0fdbab
·
verified ·
1 Parent(s): c71b279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -195,6 +195,7 @@ def process_question(q, chat_history):
195
  with gr.Blocks(title="Company Documents Q&A Chatbot", theme=gr.themes.Soft()) as demo:
196
  gr.Markdown("## 📚 **Company Policies Q&A Chatbot**")
197
 
 
198
  with gr.Row():
199
  with gr.Column(scale=3):
200
  question = gr.Textbox(
@@ -206,6 +207,9 @@ with gr.Blocks(title="Company Documents Q&A Chatbot", theme=gr.themes.Soft()) as
206
  )
207
  with gr.Column(scale=1):
208
  submit_btn = gr.Button("Submit", variant="primary", elem_id="submit-btn")
 
 
 
209
 
210
  with gr.Row():
211
  with gr.Column():
@@ -270,6 +274,7 @@ with gr.Blocks(title="Company Documents Q&A Chatbot", theme=gr.themes.Soft()) as
270
  color: white;
271
  border-radius: 8px;
272
  transition: transform 0.2s ease-in-out;
 
273
  }
274
 
275
  #submit-btn:hover {
 
195
  with gr.Blocks(title="Company Documents Q&A Chatbot", theme=gr.themes.Soft()) as demo:
196
  gr.Markdown("## 📚 **Company Policies Q&A Chatbot**")
197
 
198
+ # Position Submit Button Below the Input Field
199
  with gr.Row():
200
  with gr.Column(scale=3):
201
  question = gr.Textbox(
 
207
  )
208
  with gr.Column(scale=1):
209
  submit_btn = gr.Button("Submit", variant="primary", elem_id="submit-btn")
210
+
211
+ # Submit Button Below the Textbox (in the same column)
212
+ submit_btn.style(full_width=True)
213
 
214
  with gr.Row():
215
  with gr.Column():
 
274
  color: white;
275
  border-radius: 8px;
276
  transition: transform 0.2s ease-in-out;
277
+ margin-top: 15px;
278
  }
279
 
280
  #submit-btn:hover {