revert height changes
Browse files12 unmodified lines13141516171617181922202124252627222324254 unmodified lines303132383312 unmodified lines def update_model(new_model: str) -> list[gr.Column]: return [gr.Column(visible=model_name == new_model) for model_name in models]
chatbots = [gr.Chatbot(height=750) for _ in models]
with gr.Blocks() as demo: model = gr.Dropdown(label="Select Model", choices=models, value=default_model)
columns = [] for model_name, chatbot in zip(models, chatbots): for model_name in models: with gr.Column(visible=model_name == default_model) as column: if src != "models": gr.load(name=model_name, src=src, accept_token=accept_token, chatbot=chatbot, **kwargs) else: gr.load(name=model_name, src=src, accept_token=accept_token, **kwargs) gr.load(name=model_name, src=src, accept_token=accept_token, **kwargs) columns.append(column)
model.change(4 unmodified lines queue=False, )
return demo return demoutils.py+3-8