Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
4685c47
1
Parent(s):
5b6505c
add additional parent of gr.Row() to upload and download file buttons
Browse files
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 |
-
|
163 |
-
|
|
|
|
|
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")
|