Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
justest
/
embeddings-api
like
3
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
5f6d793
embeddings-api
/
app.py
lwdgit
initial commit
597fe90
over 1 year ago
raw
Copy download link
history
blame
Safe
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()