Spaces:
Runtime error
Runtime error
Allen Park commited on
Commit ·
4ac5777
1
Parent(s): 040d986
fix(move upload button from right side to below document textbox)
Browse files252 unmodified lines253254255256257258259260261262263264252 unmodified linesquestion = gr.Textbox(label="Question")with gr.Row():document = gr.Textbox(label="Document", scale=4)u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")file_group = gr.Group(elem_classes="fixed-height-button", visible=False)with file_group:file_name = gr.Markdown("")c = gr.ClearButton([u, file_name])# d = gr.DownloadButton("Download the file", visible=False, scale=1)with gr.Row():answer = gr.Textbox(label="Answer")with gr.Row():252 unmodified lines253254255256257258259260261262263264252 unmodified linesquestion = gr.Textbox(label="Question")with gr.Row():document = gr.Textbox(label="Document", scale=4)with gr.Row():u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")file_group = gr.Group(elem_classes="fixed-height-button", visible=False)with file_group:file_name = gr.Markdown("")c = gr.ClearButton([u, file_name])with gr.Row():answer = gr.Textbox(label="Answer")with gr.Row():
app.py+1-1