Spaces:
Build error
Build error
File size: 343 Bytes
97598b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/usr/env python3
import requests
import sys
file = open(sys.argv[1])
response = requests.post("https://orgmycology-whisper-speaker-diarization.hf.space/run/diarized_transcribe", json={
"data": [
{"name":"audio.mp3","data":"data:@file/octet-stream;base64,{base64string}"},
"en",
"base",
2,
]
}).json()
data = response["data"]
|