Allen Park commited on
Commit
db1bb98
·
1 Parent(s): 31afd70

fix(move examples below right side & get rid of header)

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -245,8 +245,10 @@ with gr.Blocks(css=css) as demo:
245
  with gr.Row():
246
  clear_btn = gr.ClearButton([question, document, answer])
247
  submit_button = gr.Button("Submit")
 
 
 
248
  with gr.Row():
249
- gr.Markdown("### Example Templates")
250
  for idx, example in enumerate(EXAMPLES):
251
  template_btn = gr.Button(f"{example['emoji']} {example['question']}")
252
  template_btn.click(
@@ -254,9 +256,6 @@ with gr.Blocks(css=css) as demo:
254
  inputs=[gr.State(example)],
255
  outputs=[question, document, answer]
256
  )
257
- with gr.Column(scale=1):
258
- reasoning = gr.Textbox(label="Reasoning")
259
- score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
260
 
261
  model_dropdown.change(fn=update_client_base_url, inputs=[model_dropdown], outputs=[base_url_state])
262
  u.upload(upload_file, u, [u, file_group, file_name, document])
 
245
  with gr.Row():
246
  clear_btn = gr.ClearButton([question, document, answer])
247
  submit_button = gr.Button("Submit")
248
+ with gr.Column(scale=1):
249
+ reasoning = gr.Textbox(label="Reasoning")
250
+ score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
251
  with gr.Row():
 
252
  for idx, example in enumerate(EXAMPLES):
253
  template_btn = gr.Button(f"{example['emoji']} {example['question']}")
254
  template_btn.click(
 
256
  inputs=[gr.State(example)],
257
  outputs=[question, document, answer]
258
  )
 
 
 
259
 
260
  model_dropdown.change(fn=update_client_base_url, inputs=[model_dropdown], outputs=[base_url_state])
261
  u.upload(upload_file, u, [u, file_group, file_name, document])