Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update ui & change color
  • Loading branch information
merrymercy committed Sep 18, 2023
commit e27ae12ca8c5a855bbeb5ed06cbad28f0bcf33c0
5 changes: 3 additions & 2 deletions fastchat/serve/gradio_block_arena_anony.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def share_click(state0, state1, model_selector0, model_selector1, request: gr.Re
"chatglm-6b": 0.5,
}

SAMPLING_BOOST_MODELS = ["wizardlm-70b"]
SAMPLING_BOOST_MODELS = []

model_pairs = []
model_pairs_weights = []
Expand Down Expand Up @@ -386,7 +386,7 @@ def build_side_by_side_ui_anony(models):
By using this service, users are required to agree to the following terms: The service is a research preview intended for non-commercial use only. It only provides limited safety measures and may generate offensive content. It must not be used for any illegal, harmful, violent, racist, or sexual purposes. **The service collects user dialogue data and reserves the right to distribute it under a Creative Commons Attribution (CC-BY) license.** The demo works better on desktop devices with a wide screen.

### Battle
Please scroll down and start chatting. The models include both closed-source models (e.g., ChatGPT) and open-source models (e.g., Llama, Vicuna).
Please scroll down and start chatting. The models include both closed-source models (e.g., ChatGPT) and open-source models (e.g., Llama).
"""

states = [gr.State() for _ in range(num_sides)]
Expand Down Expand Up @@ -423,6 +423,7 @@ def build_side_by_side_ui_anony(models):
placeholder="Enter your prompt here and press ENTER",
visible=False,
container=False,
elem_id="input_box",
)
with gr.Column(scale=1, min_width=50):
send_btn = gr.Button(value="Battle", visible=False, variant="primary")
Expand Down
1 change: 1 addition & 0 deletions fastchat/serve/gradio_block_arena_named.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def build_side_by_side_ui_named(models):
placeholder="Enter your prompt here and press ENTER",
visible=False,
container=False,
elem_id="input_box",
)
with gr.Column(scale=1, min_width=50):
send_btn = gr.Button(value="Battle", visible=False, variant="primary")
Expand Down
4 changes: 4 additions & 0 deletions fastchat/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ def bot_response(state, temperature, top_p, max_new_tokens, request: gr.Request)
#leaderboard_dataframe td {
line-height: 0.1em;
}
#input_box textarea {
background-color: white;
}
footer {
display:none !important
}
Expand Down Expand Up @@ -594,6 +597,7 @@ def build_single_model_ui(models, add_promotion_links=False):
placeholder="Enter your prompt here and press ENTER",
visible=False,
container=False,
elem_id="input_box",
)
with gr.Column(scale=1, min_width=50):
send_btn = gr.Button(value="Send", visible=False, variant="primary")
Expand Down