Skip to main content

Welcome

There are 7 API endpoints that you can access.

Endpoints

  1. /get_embedding
  2. /word_similarity
  3. /nearest_neighbors
  4. /sentence_embedding
  5. /sentence_similarity
  6. /_index_upload
  7. /_search_wrapper

Quick Start

  • Python
  • Javascript
  • cURL
  1. Install the python client (gradio docs) if you don’t already have it installed.
pip install gradio_client
  1. Here’s your first API call
from gradio_client import Client

client = Client("Remeinium/Embedding_Siyabasa")
result = client.predict(
    word="අම්මා",
    api_name="/get_embedding"
)
print(json.dumps(result, indent=4))
See detailed usage examplesGo to next Topic >