Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
infwinston committed Oct 20, 2023
1 parent 0388935 commit fbe5cad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fastchat/serve/gradio_web_server_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ def build_demo(models, elo_results_file, leaderboard_table_file):
+ single_model_list
+ side_by_side_anony_list
+ side_by_side_named_list,
_js=load_js,
_js="""
() => {
document.body.classList.toggle('dark');
document.body.classList.toggle('light');
document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)';
}
""",
)

return demo
Expand Down

0 comments on commit fbe5cad

Please sign in to comment.