Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Mingxin Zheng <[email protected]>
  • Loading branch information
mingxin-zheng committed Oct 31, 2024
1 parent 823e0d5 commit c17bb0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions m3/demo/gradio_m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import logging
import os
import tempfile
import time
import time
from copy import deepcopy
from glob import glob
from shutil import copyfile, rmtree
Expand Down Expand Up @@ -698,6 +698,7 @@ def update_model_cards_text(model_cards, sv):
sv.sys_msg = model_cards
return sv


def update_model_cards_checkbox(use_model_cards, sv):
"""Update the model cards checkbox"""
logger.debug(f"Updating the model cards checkbox")
Expand Down Expand Up @@ -755,7 +756,7 @@ def create_demo(source, model_path, conv_mode, server_port):
model_cards_checkbox = gr.Checkbox(
label="Use Model Cards",
value=sv.value.use_model_cards,
info="Check this to include the model cards of the experts."
info="Check this to include the model cards of the experts.",
)
model_cards_text = gr.Textbox(label="Model Cards", value=sv.value.sys_msg, lines=8)
sys_prompt_text = gr.Textbox(
Expand Down

0 comments on commit c17bb0f

Please sign in to comment.