Update src/ui.py
Browse files
src/ui.py
CHANGED
|
@@ -17,7 +17,7 @@ def create_ui():
|
|
| 17 |
# --- Main Input Section ---
|
| 18 |
with gr.Row(equal_height=False):
|
| 19 |
# Left column - Question + Buttons
|
| 20 |
-
with gr.Column(scale=
|
| 21 |
q = gr.Textbox(
|
| 22 |
label="Your Question",
|
| 23 |
placeholder="Write your prompt here...",
|
|
@@ -31,8 +31,8 @@ def create_ui():
|
|
| 31 |
|
| 32 |
status = gr.Markdown(value="", visible=True)
|
| 33 |
|
| 34 |
-
# Right column - Answer Mode
|
| 35 |
-
with gr.Column(scale=1, min_width=
|
| 36 |
mode = gr.Radio(
|
| 37 |
["Quick Summary (Offline)", "LLM Precision (Groq Llama-3.1 70B)"],
|
| 38 |
value="Quick Summary (Offline)",
|
|
|
|
| 17 |
# --- Main Input Section ---
|
| 18 |
with gr.Row(equal_height=False):
|
| 19 |
# Left column - Question + Buttons
|
| 20 |
+
with gr.Column(scale=2.5): # slightly reduced width
|
| 21 |
q = gr.Textbox(
|
| 22 |
label="Your Question",
|
| 23 |
placeholder="Write your prompt here...",
|
|
|
|
| 31 |
|
| 32 |
status = gr.Markdown(value="", visible=True)
|
| 33 |
|
| 34 |
+
# Right column - Answer Mode (expanded slightly)
|
| 35 |
+
with gr.Column(scale=1.2, min_width=360):
|
| 36 |
mode = gr.Radio(
|
| 37 |
["Quick Summary (Offline)", "LLM Precision (Groq Llama-3.1 70B)"],
|
| 38 |
value="Quick Summary (Offline)",
|