Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ CSS ="""
|
|
53 |
#component-0 { height: 100%; }
|
54 |
#textbox { flex-grow: 1; overflow: auto; resize: vertical; }
|
55 |
.secondary {background-color: #6366f1; }
|
|
|
56 |
"""
|
57 |
#with gr.Blocks() as demo:
|
58 |
with gr.Blocks(theme=gr.themes.Monochrome(radius_size=gr.themes.sizes.radius_sm)) as demo:
|
@@ -70,7 +71,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(radius_size=gr.themes.sizes.radius_sm)
|
|
70 |
lines=3,
|
71 |
)
|
72 |
with gr.Row():
|
73 |
-
submit = gr.Button(value="検索", variant="secondary"
|
74 |
top_k = gr.Slider(1, 10, label="表示数", step=1, value=5, interactive=True)
|
75 |
|
76 |
submit_click_event = submit.click(fn=hybrid_search, inputs=[input, top_k], outputs=output)
|
|
|
53 |
#component-0 { height: 100%; }
|
54 |
#textbox { flex-grow: 1; overflow: auto; resize: vertical; }
|
55 |
.secondary {background-color: #6366f1; }
|
56 |
+
#full-width-button { width: 100%; }
|
57 |
"""
|
58 |
#with gr.Blocks() as demo:
|
59 |
with gr.Blocks(theme=gr.themes.Monochrome(radius_size=gr.themes.sizes.radius_sm)) as demo:
|
|
|
71 |
lines=3,
|
72 |
)
|
73 |
with gr.Row():
|
74 |
+
submit = gr.Button(value="検索", variant="secondary", elem_id="full-width-button")
|
75 |
top_k = gr.Slider(1, 10, label="表示数", step=1, value=5, interactive=True)
|
76 |
|
77 |
submit_click_event = submit.click(fn=hybrid_search, inputs=[input, top_k], outputs=output)
|