Allen Park commited on
Commit
4685c47
·
1 Parent(s): 5b6505c

add additional parent of gr.Row() to upload and download file buttons

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -159,8 +159,10 @@ with gr.Blocks(css=css) as demo:
159
  with gr.Column(scale=4):
160
  question = gr.Textbox(label="Question")
161
  with gr.Column(scale=1):
162
- u = gr.UploadButton("Upload a file", file_count="single")
163
- d = gr.DownloadButton("Download the file", visible=False)
 
 
164
  with gr.Row():
165
  with gr.Column(scale=1):
166
  document = gr.Textbox(label="Document")
 
159
  with gr.Column(scale=4):
160
  question = gr.Textbox(label="Question")
161
  with gr.Column(scale=1):
162
+ with gr.Row():
163
+ u = gr.UploadButton("Upload a file", file_count="single")
164
+ with gr.Row():
165
+ d = gr.DownloadButton("Download the file", visible=False)
166
  with gr.Row():
167
  with gr.Column(scale=1):
168
  document = gr.Textbox(label="Document")