embed_api / app.py
takeraparterer's picture
Update app.py
930374f verified
raw
history blame contribute delete
240 Bytes
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)