Beginner for huggingface.
Trying to run whisper-large inference API endpoint with 7 min video.
What is file size limitation whisper??
import requests
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3"
headers = {"Authorization": "Bearer <my-token>}
def query(filename):
with open(filename, "rb") as f:
data = f.read()
response = requests.post(API_URL, headers=headers, data=data)
return response
output = query("7min.mp4")