CoolFace
Apppublic

sakibzaman/Punctuation

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
App README

Bengali Punctuation Model API

This Space provides an API for adding punctuation to Bengali text using a fine-tuned Llama model.

Features

  • 🔤 Bengali text punctuation restoration
  • 🚀 GPU-accelerated inference (T4)
  • 🌐 REST API for client-server communication
  • 📱 Web interface for easy testing

API Usage

Endpoint

POST https://your-space-name.hf.space/api/predict

Example Request

python
import requests

response = requests.post(
    "https://your-space-name.hf.space/api/predict",
    json={"data": ["আমি ঢাকায় থাকি আমার বাড়ি সিলেটে"]}
)
result = response.json()
print(result["data"][0]["punctuated_text"])

Model Information

  • Task: Bengali Punctuation Restoration
  • Base Model: Fine-tuned Llama
  • Hardware: T4 GPU
  • API: RESTful with JSON responses