multilingual-nlp / README.md
chmielvu's picture
Rewrite README with concise model and endpoint docs
2c39eb1 verified
metadata
title: multilingual-nlp
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: true

multilingual-nlp

Live API: https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space

Models

  • Embeddings: BAAI/bge-m3 Served name: multilingual-embed Vector dimension: 1024
  • Reranker: BAAI/bge-reranker-v2-m3 Served name: multilingual-rerank
  • Classifier: clapAI/modernBERT-base-multilingual-sentiment Served name: multilingual-classify

Endpoints

  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/health
  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/models
  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/embeddings
  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/rerank
  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/classify
  • https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/openapi.json

Example Requests

curl -X POST "https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/embeddings" \
  -H "Content-Type: application/json" \
  -d '{"model":"multilingual-embed","input":["This is a multilingual embedding test."]}'
curl -X POST "https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/rerank" \
  -H "Content-Type: application/json" \
  -d '{"model":"multilingual-rerank","query":"How do I reset my password?","documents":["Use the password reset form and confirm the email link.","Warsaw is the capital of Poland."],"return_documents":true}'
curl -X POST "https://huggingface.co/proxy/chmielvu-multilingual-nlp.hf.space/classify" \
  -H "Content-Type: application/json" \
  -d '{"model":"multilingual-classify","input":["This product is disappointing."]}'