Allen Park commited on
Commit
8a56afd
·
1 Parent(s): 67958ca

remove parent gr.Column and adjust scale of elements (textbox, uploadbutton, downloadbutton)

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -156,11 +156,9 @@ with gr.Blocks(css=css) as demo:
156
  with gr.Row():
157
  with gr.Column(scale=1):
158
  with gr.Row():
159
- with gr.Column(scale=9):
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")
 
156
  with gr.Row():
157
  with gr.Column(scale=1):
158
  with gr.Row():
159
+ question = gr.Textbox(label="Question", scale=4)
160
+ u = gr.UploadButton("Upload question", file_count="single", scale=1)
161
+ d = gr.DownloadButton("Download the file", visible=False, scale=1)
 
 
162
  with gr.Row():
163
  with gr.Column(scale=1):
164
  document = gr.Textbox(label="Document")