AmberLJC commited on
Commit
d4e66cd
1 Parent(s): d2e1639

model name position; input instruction

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -339,7 +339,7 @@ Every benchmark is limited in some sense -- Before you interpret the results, pl
339
  controller_addr = os.environ["COLOSSEUM_CONTROLLER_ADDR"]
340
  global_controller_client = ControllerClient(controller_addr=controller_addr, timeout=15)
341
 
342
- ANONYMOUS_MODEL_TEXT = "## Anonymous 🤫"
343
 
344
  # Colosseum helper functions.
345
  def enable_interact():
@@ -495,7 +495,7 @@ with gr.Blocks(css=custom_css) as block:
495
  with gr.Row():
496
  prompt_input = gr.Textbox(
497
  show_label=False,
498
- placeholder="Type your prompt and press ENTER",
499
  autofocus=True,
500
  container=False,
501
  scale=20,
@@ -513,22 +513,22 @@ with gr.Blocks(css=custom_css) as block:
513
  chatbots = []
514
  resp_vote_btn_list: list[gr.component.Component] = []
515
  with gr.Column():
516
- with gr.Row():
517
- masked_model_names.append(gr.Markdown(ANONYMOUS_MODEL_TEXT))
518
  with gr.Row():
519
  chatbots.append(gr.Chatbot(label="Model A", elem_id="chatbot", height=600))
520
  with gr.Row():
521
  left_resp_vote_btn = gr.Button(value="👈 Model A is better", interactive=False)
522
  resp_vote_btn_list.append(left_resp_vote_btn)
523
-
524
- with gr.Column():
525
  with gr.Row():
526
  masked_model_names.append(gr.Markdown(ANONYMOUS_MODEL_TEXT))
 
 
527
  with gr.Row():
528
  chatbots.append(gr.Chatbot(label="Model B", elem_id="chatbot", height=600))
529
  with gr.Row():
530
  right_resp_vote_btn = gr.Button(value="👉 Model B is better", interactive=False)
531
  resp_vote_btn_list.append(right_resp_vote_btn)
 
 
532
 
533
  with gr.Row():
534
  energy_comparison_message = gr.HTML(visible=False)
 
339
  controller_addr = os.environ["COLOSSEUM_CONTROLLER_ADDR"]
340
  global_controller_client = ControllerClient(controller_addr=controller_addr, timeout=15)
341
 
342
+ ANONYMOUS_MODEL_TEXT = "## Anonymous Model 🤫"
343
 
344
  # Colosseum helper functions.
345
  def enable_interact():
 
495
  with gr.Row():
496
  prompt_input = gr.Textbox(
497
  show_label=False,
498
+ placeholder="Input your prompt, e.g., 'Explain machine learning in simple terms.'",
499
  autofocus=True,
500
  container=False,
501
  scale=20,
 
513
  chatbots = []
514
  resp_vote_btn_list: list[gr.component.Component] = []
515
  with gr.Column():
 
 
516
  with gr.Row():
517
  chatbots.append(gr.Chatbot(label="Model A", elem_id="chatbot", height=600))
518
  with gr.Row():
519
  left_resp_vote_btn = gr.Button(value="👈 Model A is better", interactive=False)
520
  resp_vote_btn_list.append(left_resp_vote_btn)
 
 
521
  with gr.Row():
522
  masked_model_names.append(gr.Markdown(ANONYMOUS_MODEL_TEXT))
523
+
524
+ with gr.Column():
525
  with gr.Row():
526
  chatbots.append(gr.Chatbot(label="Model B", elem_id="chatbot", height=600))
527
  with gr.Row():
528
  right_resp_vote_btn = gr.Button(value="👉 Model B is better", interactive=False)
529
  resp_vote_btn_list.append(right_resp_vote_btn)
530
+ with gr.Row():
531
+ masked_model_names.append(gr.Markdown(ANONYMOUS_MODEL_TEXT))
532
 
533
  with gr.Row():
534
  energy_comparison_message = gr.HTML(visible=False)