update
Browse files24 unmodified lines2526272829303132333424 unmodified linesdef update_model(new_model, container, src_registry, **kwargs):with container:container.visible = False # Hide current contentnew_interface = create_interface(new_model, src_registry, **kwargs)new_interface.render()container.visible = True # Show new contentwith gr.Blocks(fill_height=True) as demo:# Meta Llama Tab24 unmodified lines252627282930313233343524 unmodified linesdef update_model(new_model, container, src_registry, **kwargs):with container:# Clear existing content firstcontainer.clear()# Create and render new interfacenew_interface = create_interface(new_model, src_registry, **kwargs)new_interface.render()with gr.Blocks(fill_height=True) as demo:# Meta Llama Tab
app.py+3-2