import gradio as gr def load_interface(): iface = gr.Interface.load("models/NousResearch/Nous-Capybara-7B") return iface if __name__ == "__main__": interface = load_interface() interface.launch()