import gradio as gr from gpt4all import Embed4All embedder = Embed4All('nomic-embed-text-v1.5.f16.gguf') def embed(name): return embedder.embed(name) demo = gr.Interface(fn=embed, inputs="text", outputs="json") demo.launch(share=True)