Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,6 @@ 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 |
-
# Position Submit Button Below the Input Field
|
199 |
with gr.Row():
|
200 |
with gr.Column(scale=3):
|
201 |
question = gr.Textbox(
|
@@ -206,10 +205,7 @@ with gr.Blocks(title="Company Documents Q&A Chatbot", theme=gr.themes.Soft()) as
|
|
206 |
elem_id="user-question",
|
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():
|
|
|
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(
|
|
|
205 |
elem_id="user-question",
|
206 |
)
|
207 |
with gr.Column(scale=1):
|
208 |
+
submit_btn = gr.Button("Submit", variant="primary", elem_id="submit-btn", scale=2) # Using scale for full-width
|
|
|
|
|
|
|
209 |
|
210 |
with gr.Row():
|
211 |
with gr.Column():
|