Skip to content

Commit fe45c6f

Browse files
committed
Format
1 parent 3555d01 commit fe45c6f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

fastchat/serve/gradio_block_arena_vision.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,18 @@ def clear_history(request: gr.Request):
155155
ip = get_ip(request)
156156
logger.info(f"clear_history. ip: {ip}")
157157
state = None
158-
return (state, [], enable_multimodal_clear_input, invisible_text, invisible_btn) + (disable_btn,) * 5
158+
return (state, [], enable_multimodal_clear_input, invisible_text, invisible_btn) + (
159+
disable_btn,
160+
) * 5
159161

160162

161163
def clear_history_example(request: gr.Request):
162164
ip = get_ip(request)
163165
logger.info(f"clear_history_example. ip: {ip}")
164166
state = None
165-
return (state, [], enable_multimodal_keep_input, invisible_text, invisible_btn) + (disable_btn,) * 5
167+
return (state, [], enable_multimodal_keep_input, invisible_text, invisible_btn) + (
168+
disable_btn,
169+
) * 5
166170

167171

168172
# TODO(Chris): At some point, we would like this to be a live-reporting feature.

fastchat/serve/monitor/monitor.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,12 @@ def get_model_name(model_key):
772772

773773

774774
def build_leaderboard_tab(
775-
elo_results_file, leaderboard_table_file, arena_hard_leaderboard, vision=True, show_plot=False, mirror=False
775+
elo_results_file,
776+
leaderboard_table_file,
777+
arena_hard_leaderboard,
778+
vision=True,
779+
show_plot=False,
780+
mirror=False,
776781
):
777782
if elo_results_file is None: # Do live update
778783
default_md = "Loading ..."
@@ -849,7 +854,7 @@ def build_leaderboard_tab(
849854
default_md,
850855
show_plot=show_plot,
851856
)
852-
857+
853858
if vision:
854859
with gr.Tab("Arena (Vision)", id=2):
855860
build_arena_tab(

0 commit comments

Comments
 (0)