Spaces:
Sleeping
Sleeping
Commit Β·
4f6ef49
1
Parent(s): a686a35
update textbox lines for context
Browse files
app.py
CHANGED
|
@@ -756,9 +756,12 @@ def create_demo():
|
|
| 756 |
clear_btn.click(lambda: ([], ""), outputs=[chatbot, msg])
|
| 757 |
|
| 758 |
with gr.Tab("π Debug"):
|
| 759 |
-
debug_input = gr.Textbox(
|
|
|
|
|
|
|
|
|
|
| 760 |
context_btn = gr.Button("π Show Context", variant="primary")
|
| 761 |
-
debug_output = gr.Textbox(label="Retrieved Context", lines=
|
| 762 |
|
| 763 |
context_btn.click(get_context_fn, inputs=debug_input, outputs=debug_output)
|
| 764 |
|
|
|
|
| 756 |
clear_btn.click(lambda: ([], ""), outputs=[chatbot, msg])
|
| 757 |
|
| 758 |
with gr.Tab("π Debug"):
|
| 759 |
+
debug_input = gr.Textbox(
|
| 760 |
+
label="Enter your question",
|
| 761 |
+
lines=1,
|
| 762 |
+
)
|
| 763 |
context_btn = gr.Button("π Show Context", variant="primary")
|
| 764 |
+
debug_output = gr.Textbox(label="Retrieved Context", lines=50)
|
| 765 |
|
| 766 |
context_btn.click(get_context_fn, inputs=debug_input, outputs=debug_output)
|
| 767 |
|