5to9 commited on
Commit
8ab3c0d
·
1 Parent(s): 0a3f3e2

0.27 UX tweaks

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -189,16 +189,18 @@ with gr.Blocks() as demo:
189
  gr.HTML("<center><h1>🤖le Royale</h1></center>")
190
  gr.Markdown(arena_notes)
191
  system_prompt = gr.Textbox(lines=1, label="System Prompt", value="You are a helpful chatbot. Write a Nike style ad headline about the shame of being second best", show_copy_button=True)
192
- with gr.Row(variant="panel"):
193
- with gr.Column():
194
- chatbot_a = gr.Chatbot(label="Model A", likeable=True, show_copy_button=True, height=500)
195
- with gr.Column():
196
- chatbot_b = gr.Chatbot(label="Model B", likeable=True, show_copy_button=True, height=500)
197
  with gr.Row(variant="panel"):
198
  with gr.Column(scale=1):
199
  submit_btn = gr.Button(value="Generate", variant="primary")
200
  clear_btn = gr.Button(value="Clear", variant="secondary")
201
- input_text = gr.Textbox(lines=1, label="Output", value="", scale=3, show_copy_button=True)
 
 
 
 
 
 
 
202
  with gr.Accordion(label="Generation Configurations", open=False):
203
  max_new_tokens = gr.Slider(minimum=128, maximum=4096, value=2048, label="Max New Tokens", step=128)
204
  temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.7, label="Temperature", step=0.01)
 
189
  gr.HTML("<center><h1>🤖le Royale</h1></center>")
190
  gr.Markdown(arena_notes)
191
  system_prompt = gr.Textbox(lines=1, label="System Prompt", value="You are a helpful chatbot. Write a Nike style ad headline about the shame of being second best", show_copy_button=True)
 
 
 
 
 
192
  with gr.Row(variant="panel"):
193
  with gr.Column(scale=1):
194
  submit_btn = gr.Button(value="Generate", variant="primary")
195
  clear_btn = gr.Button(value="Clear", variant="secondary")
196
+ input_text = gr.Textbox(lines=1, label="Prompt", value="", scale=3, show_copy_button=True)
197
+ with gr.Row(variant="panel"):
198
+ with gr.Column():
199
+ chatbot_a = gr.Chatbot(label="Model A", show_copy_button=True, height=500)
200
+ with gr.Column():
201
+ chatbot_b = gr.Chatbot(label="Model B", show_copy_button=True, height=500)
202
+ with gr.Row(variant="panel"):
203
+ gr.Radio(["Bot A kicks ass!", "Bot B crushes it!"], label="Which bot performs better?", info="Rate the output"),
204
  with gr.Accordion(label="Generation Configurations", open=False):
205
  max_new_tokens = gr.Slider(minimum=128, maximum=4096, value=2048, label="Max New Tokens", step=128)
206
  temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.7, label="Temperature", step=0.01)