Allen Park commited on
Commit
2ca5664
·
1 Parent(s): b084d79

add gr.Row back with question and answer

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -197,7 +197,8 @@ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta
197
  model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
198
  with gr.Row():
199
  with gr.Column(scale=1):
200
- question = gr.Textbox(label="Question")
 
201
  with gr.Row():
202
  document = gr.Textbox(label="Document", scale=9)
203
  u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
@@ -206,7 +207,8 @@ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta
206
  file_name = gr.Markdown("")
207
  c = gr.ClearButton([u, file_name])
208
  # d = gr.DownloadButton("Download the file", visible=False, scale=1)
209
- answer = gr.Textbox(label="Answer")
 
210
  with gr.Row():
211
  clear_btn = gr.ClearButton([question, document, answer])
212
  submit_button = gr.Button("Submit", variant="primary")
 
197
  model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
198
  with gr.Row():
199
  with gr.Column(scale=1):
200
+ with gr.Row():
201
+ question = gr.Textbox(label="Question")
202
  with gr.Row():
203
  document = gr.Textbox(label="Document", scale=9)
204
  u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
 
207
  file_name = gr.Markdown("")
208
  c = gr.ClearButton([u, file_name])
209
  # d = gr.DownloadButton("Download the file", visible=False, scale=1)
210
+ with gr.Row():
211
+ answer = gr.Textbox(label="Answer")
212
  with gr.Row():
213
  clear_btn = gr.ClearButton([question, document, answer])
214
  submit_button = gr.Button("Submit", variant="primary")