Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,10 +102,6 @@ CSS ="""
|
|
102 |
#textbox { flex-grow: 1; overflow: auto; resize: vertical;}
|
103 |
.secondary {background-color: #6366f1; }
|
104 |
#full-width-button { width: 100%; }
|
105 |
-
.gr-textbox input[type="text"] {
|
106 |
-
background-color: black;
|
107 |
-
color: white;
|
108 |
-
}
|
109 |
#search-result { overflow-y: auto !important; font-size:18px !important; font-weight:500 !important; background-color: black !important; color: white !important;}
|
110 |
#question-box { font-size:18px !important; font-weight:500 !important; }
|
111 |
"""
|
@@ -133,7 +129,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
133 |
lines=3,
|
134 |
)
|
135 |
with gr.Row():
|
136 |
-
submit = gr.Button(value="検索", variant="
|
137 |
top_k = gr.Slider(1, 10, label="表示数", step=1, value=5, interactive=True)
|
138 |
|
139 |
submit_click_event = submit.click(fn=hybrid_search, inputs=[input, top_k], outputs=output)
|
|
|
102 |
#textbox { flex-grow: 1; overflow: auto; resize: vertical;}
|
103 |
.secondary {background-color: #6366f1; }
|
104 |
#full-width-button { width: 100%; }
|
|
|
|
|
|
|
|
|
105 |
#search-result { overflow-y: auto !important; font-size:18px !important; font-weight:500 !important; background-color: black !important; color: white !important;}
|
106 |
#question-box { font-size:18px !important; font-weight:500 !important; }
|
107 |
"""
|
|
|
129 |
lines=3,
|
130 |
)
|
131 |
with gr.Row():
|
132 |
+
submit = gr.Button(value="検索", variant="huggingface", elem_id="full-width-button")
|
133 |
top_k = gr.Slider(1, 10, label="表示数", step=1, value=5, interactive=True)
|
134 |
|
135 |
submit_click_event = submit.click(fn=hybrid_search, inputs=[input, top_k], outputs=output)
|