Commit ·
c8109c5
1
Parent(s): a37e8ba
modify so clear does not remove things and made text better
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 72 |
elem_id="spec-input"
|
| 73 |
)
|
| 74 |
with gr.Row():
|
| 75 |
-
use_rag = gr.Checkbox(value=True, label="Use
|
| 76 |
top_k = gr.Slider(1, 5, value=3, step=1, label="Top-K retrieved examples")
|
| 77 |
|
| 78 |
# --- Generation settings as text boxes ---
|
|
@@ -104,7 +104,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
|
|
| 104 |
with gr.Row():
|
| 105 |
clear_btn = gr.ClearButton(
|
| 106 |
value="Clear All",
|
| 107 |
-
components=[spec, out_code
|
| 108 |
)
|
| 109 |
|
| 110 |
# --- Wrapper function to handle output from the generation agent ---
|
|
|
|
| 72 |
elem_id="spec-input"
|
| 73 |
)
|
| 74 |
with gr.Row():
|
| 75 |
+
use_rag = gr.Checkbox(value=True, label="Use RAG")
|
| 76 |
top_k = gr.Slider(1, 5, value=3, step=1, label="Top-K retrieved examples")
|
| 77 |
|
| 78 |
# --- Generation settings as text boxes ---
|
|
|
|
| 104 |
with gr.Row():
|
| 105 |
clear_btn = gr.ClearButton(
|
| 106 |
value="Clear All",
|
| 107 |
+
components=[spec, out_code]
|
| 108 |
)
|
| 109 |
|
| 110 |
# --- Wrapper function to handle output from the generation agent ---
|