5to9 commited on
Commit
7977c5d
1 Parent(s): 992ab1c

0.5 tweaking output, ltr

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -178,7 +178,7 @@ with gr.Blocks() as demo:
178
  with gr.Column():
179
  gr.HTML("<center><h1>🤖le Royale</h1></center>")
180
  gr.Markdown(arena_notes)
181
- system_prompt = gr.Textbox(lines=1, label="System Prompt", value="You are a helpful chatbot. Write a nike-worthy ad headline about the shame of being second best", show_copy_button=True)
182
  with gr.Row(variant="panel"):
183
  with gr.Column():
184
  model_dropdown_a = gr.Dropdown(label="Model A", choices=models_available, value=None)
@@ -190,7 +190,7 @@ with gr.Blocks() as demo:
190
  with gr.Column(scale=1):
191
  submit_btn = gr.Button(value="Generate", variant="primary")
192
  clear_btn = gr.Button(value="Clear", variant="secondary")
193
- input_text = gr.Textbox(lines=1, label="", value="مرحبا", rtl=True, text_align="right", scale=3, show_copy_button=True)
194
  with gr.Accordion(label="Generation Configurations", open=False):
195
  max_new_tokens = gr.Slider(minimum=128, maximum=4096, value=2048, label="Max New Tokens", step=128)
196
  temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.7, label="Temperature", step=0.01)
 
178
  with gr.Column():
179
  gr.HTML("<center><h1>🤖le Royale</h1></center>")
180
  gr.Markdown(arena_notes)
181
+ 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)
182
  with gr.Row(variant="panel"):
183
  with gr.Column():
184
  model_dropdown_a = gr.Dropdown(label="Model A", choices=models_available, value=None)
 
190
  with gr.Column(scale=1):
191
  submit_btn = gr.Button(value="Generate", variant="primary")
192
  clear_btn = gr.Button(value="Clear", variant="secondary")
193
+ input_text = gr.Textbox(lines=1, label="Output", value="", scale=3, show_copy_button=True)
194
  with gr.Accordion(label="Generation Configurations", open=False):
195
  max_new_tokens = gr.Slider(minimum=128, maximum=4096, value=2048, label="Max New Tokens", step=128)
196
  temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.7, label="Temperature", step=0.01)