Commit
·
f5c94ce
1
Parent(s):
ba02408
UI fix: replaced gradio box component
Browse files
app.py
CHANGED
@@ -86,7 +86,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
86 |
clear_btn = gr.ClearButton(value="Clear")
|
87 |
submit_btn = gr.Button("Submit", variant="primary")
|
88 |
|
89 |
-
with gr.
|
|
|
90 |
output_markdown = gr.Markdown()
|
91 |
|
92 |
gr.Examples(
|
@@ -95,7 +96,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
95 |
label="Example Questions (Click to try one)"
|
96 |
)
|
97 |
|
98 |
-
# Define what happens when you click the submit button
|
99 |
submit_btn.click(
|
100 |
fn=query_agent_gradio,
|
101 |
inputs=user_query,
|
@@ -103,7 +103,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
103 |
show_progress="minimal"
|
104 |
)
|
105 |
|
106 |
-
# Define what happens when you click the clear button
|
107 |
clear_btn.add(components=[user_query, output_markdown])
|
108 |
|
109 |
|
|
|
86 |
clear_btn = gr.ClearButton(value="Clear")
|
87 |
submit_btn = gr.Button("Submit", variant="primary")
|
88 |
|
89 |
+
with gr.Group():
|
90 |
+
gr.Markdown("### Answer")
|
91 |
output_markdown = gr.Markdown()
|
92 |
|
93 |
gr.Examples(
|
|
|
96 |
label="Example Questions (Click to try one)"
|
97 |
)
|
98 |
|
|
|
99 |
submit_btn.click(
|
100 |
fn=query_agent_gradio,
|
101 |
inputs=user_query,
|
|
|
103 |
show_progress="minimal"
|
104 |
)
|
105 |
|
|
|
106 |
clear_btn.add(components=[user_query, output_markdown])
|
107 |
|
108 |
|