Run this model with HF Jobs
Run der02/sinama-translator on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/der02/sinama-translator. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/der02/sinama-translator on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use der02/sinama-translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use der02/sinama-translator with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://der02/sinama-translator") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---
library_name: keras
tags:
- audio-classification
- cnn
- cebuano
- sinama
- mel-spectrogram
pipeline_tag: audio-classification
---
# Sinama Audio Classifier
A CNN-based audio classification model trained to recognise spoken
Cebuano / Sinama words from short audio clips.
## Usage
### Via Inference API
```python
import requests
API_URL = "https://api-inference.huggingface.co/models/YOUR_USERNAME/sinama-translator"
headers = {"Authorization": "Bearer hf_YOUR_TOKEN"}
with open("audio.wav", "rb") as f:
response = requests.post(API_URL, headers=headers, data=f.read())
print(response.json())
# [{"label": "ako", "score": 0.95}, ...]
```
### Local inference
```python
import tensorflow as tf, json, librosa, numpy as np
model = tf.keras.models.load_model("best_model.keras")
with open("label_map.json") as f:
label_map = {int(k): v for k, v in json.load(f).items()}
# preprocess your audio the same way as training …
pred = model.predict(features)
print(label_map[pred.argmax()])
```
## Training details
- **Architecture:** 3-block CNN (Conv2D → BN → ReLU → MaxPool → Dropout)
- **Features:** 128-bin Mel Spectrogram, 4 s clips, 22 050 Hz
- **Optimiser:** Adam
- **Loss:** Categorical cross-entropyREADME.mdAdded+53