Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
11d1d2d
1
Parent(s):
ae781e2
fix(comment out unnecessary gr.Row())
Browse files
app.py
CHANGED
@@ -249,18 +249,18 @@ with gr.Blocks(css=css, theme=gr.themes.Default(spacing_size="sm", font=[gr.them
|
|
249 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|
250 |
with gr.Row(equal_height=True):
|
251 |
with gr.Column(scale=1):
|
252 |
-
with gr.Row():
|
253 |
-
|
254 |
-
with gr.Row():
|
255 |
-
|
256 |
with gr.Row():
|
257 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")
|
258 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
259 |
with file_group:
|
260 |
file_name = gr.Markdown("")
|
261 |
c = gr.ClearButton([u, file_name])
|
262 |
-
with gr.Row():
|
263 |
-
|
264 |
with gr.Row():
|
265 |
clear_btn = gr.ClearButton([question, document, answer])
|
266 |
submit_button = gr.Button("Submit", variant="primary")
|
|
|
249 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|
250 |
with gr.Row(equal_height=True):
|
251 |
with gr.Column(scale=1):
|
252 |
+
# with gr.Row():
|
253 |
+
question = gr.Textbox(label="Question")
|
254 |
+
# with gr.Row():
|
255 |
+
document = gr.Textbox(label="Document", scale=4)
|
256 |
with gr.Row():
|
257 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1, elem_classes="fixed-height-button")
|
258 |
file_group = gr.Group(elem_classes="fixed-height-button", visible=False)
|
259 |
with file_group:
|
260 |
file_name = gr.Markdown("")
|
261 |
c = gr.ClearButton([u, file_name])
|
262 |
+
# with gr.Row():
|
263 |
+
answer = gr.Textbox(label="Answer")
|
264 |
with gr.Row():
|
265 |
clear_btn = gr.ClearButton([question, document, answer])
|
266 |
submit_button = gr.Button("Submit", variant="primary")
|