Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
4ac5777
1
Parent(s):
040d986
fix(move upload button from right side to below document textbox)
Browse files
app.py
CHANGED
@@ -253,12 +253,12 @@ with gr.Blocks(css=css, theme=gr.themes.Default(spacing_size="sm", font=[gr.them
|
|
253 |
question = gr.Textbox(label="Question")
|
254 |
with gr.Row():
|
255 |
document = gr.Textbox(label="Document", scale=4)
|
|
|
256 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")
|
257 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
258 |
with file_group:
|
259 |
file_name = gr.Markdown("")
|
260 |
c = gr.ClearButton([u, file_name])
|
261 |
-
# d = gr.DownloadButton("Download the file", visible=False, scale=1)
|
262 |
with gr.Row():
|
263 |
answer = gr.Textbox(label="Answer")
|
264 |
with gr.Row():
|
|
|
253 |
question = gr.Textbox(label="Question")
|
254 |
with gr.Row():
|
255 |
document = gr.Textbox(label="Document", scale=4)
|
256 |
+
with gr.Row():
|
257 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")
|
258 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
259 |
with file_group:
|
260 |
file_name = gr.Markdown("")
|
261 |
c = gr.ClearButton([u, file_name])
|
|
|
262 |
with gr.Row():
|
263 |
answer = gr.Textbox(label="Answer")
|
264 |
with gr.Row():
|