Downloads · 30 days
0
erik-svensson-cm/summarization-sentiment-test
summarization-sentiment-test is a machine learning model from erik-svensson-cm. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
ASR+Diarization handler that works natively with Inference Endpoints.
Downloads · 30 days
0
Access
Public
Updated Aug 2, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py16.4 KB · 89%
From the Hugging Face model README
ASR+Diarization handler that works natively with Inference Endpoints.
Example payload:
import base64
import requests
API_URL = "<your endpoint URL>"
filepath = "/path/to/audio"
with open(filepath, 'rb') as f:
audio_encoded = base64.b64encode(f.read()).decode("utf-8")
data = {
"inputs": audio_encoded,
"parameters": {
"batch_size": 24
}
}
resp = requests.post(API_URL, json=data, headers={"Authorization": "Bearer <your token>"})
print(resp.json())