update
Browse files24 unmodified lines252627282829303132333424 unmodified lines
def update_model(new_model, container, src_registry, **kwargs): with container: container.load_none() container.visible = False # Hide current content new_interface = create_interface(new_model, src_registry, **kwargs) new_interface.render() container.visible = True # Show new content
with gr.Blocks(fill_height=True) as demo: # Meta Llama Tabapp.py+2-1