Spaces:
Running
Running
Allen Park
commited on
Commit
•
00a2578
1
Parent(s):
8d534dc
fix(add fixed button styling & apply to upload)
Browse files
app.py
CHANGED
@@ -129,6 +129,10 @@ css = """
|
|
129 |
font-weight: 400 !important;
|
130 |
padding: .5rem 1rem;
|
131 |
}
|
|
|
|
|
|
|
|
|
132 |
"""
|
133 |
|
134 |
def update_client_base_url(model_name):
|
@@ -234,8 +238,8 @@ with gr.Blocks(css=css, theme=gr.themes.Default(spacing_size="sm", font=[gr.them
|
|
234 |
with gr.Row():
|
235 |
question = gr.Textbox(label="Question")
|
236 |
with gr.Row():
|
237 |
-
document = gr.Textbox(label="Document", scale=
|
238 |
-
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
|
239 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
240 |
with file_group:
|
241 |
file_name = gr.Markdown("")
|
|
|
129 |
font-weight: 400 !important;
|
130 |
padding: .5rem 1rem;
|
131 |
}
|
132 |
+
.fixed-height-button {
|
133 |
+
height: fit-content;
|
134 |
+
padding: 1rem .5rem;
|
135 |
+
}
|
136 |
"""
|
137 |
|
138 |
def update_client_base_url(model_name):
|
|
|
238 |
with gr.Row():
|
239 |
question = gr.Textbox(label="Question")
|
240 |
with gr.Row():
|
241 |
+
document = gr.Textbox(label="Document", scale=4)
|
242 |
+
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")
|
243 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
244 |
with file_group:
|
245 |
file_name = gr.Markdown("")
|