embeddings-api / app.py
lwdgit's picture
initial commit
597fe90
raw
history blame contribute delete
160 Bytes
import gradio as gr
import model
def encode(text):
return model.encode(text)
iface = gr.Interface(fn=encode, inputs="text", outputs="text")
iface.launch()