Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
b9132f9
1
Parent(s):
9ecbe8e
move upload file button to document/context
Browse files
app.py
CHANGED
@@ -164,14 +164,14 @@ with gr.Blocks(css=css) as demo:
|
|
164 |
with gr.Column(scale=1):
|
165 |
with gr.Row():
|
166 |
question = gr.Textbox(label="Question", scale=9)
|
|
|
|
|
167 |
u = gr.UploadButton("Upload", file_count="single", scale=1)
|
168 |
file_group = gr.Group(visible=False)
|
169 |
with file_group:
|
170 |
file_name = gr.Markdown("")
|
171 |
c = gr.ClearButton([u, file_name])
|
172 |
# d = gr.DownloadButton("Download the file", visible=False, scale=1)
|
173 |
-
with gr.Row():
|
174 |
-
document = gr.Textbox(label="Document")
|
175 |
with gr.Row():
|
176 |
answer = gr.Textbox(label="Answer")
|
177 |
with gr.Row():
|
|
|
164 |
with gr.Column(scale=1):
|
165 |
with gr.Row():
|
166 |
question = gr.Textbox(label="Question", scale=9)
|
167 |
+
with gr.Row():
|
168 |
+
document = gr.Textbox(label="Document")
|
169 |
u = gr.UploadButton("Upload", file_count="single", scale=1)
|
170 |
file_group = gr.Group(visible=False)
|
171 |
with file_group:
|
172 |
file_name = gr.Markdown("")
|
173 |
c = gr.ClearButton([u, file_name])
|
174 |
# d = gr.DownloadButton("Download the file", visible=False, scale=1)
|
|
|
|
|
175 |
with gr.Row():
|
176 |
answer = gr.Textbox(label="Answer")
|
177 |
with gr.Row():
|