Open anyaschenikova opened 4 weeks ago
You should pass the file as input, not the path to the file. This is a very simple example of working code:
import requests
with open("sounds/audio_temp.mp3", "rb") as audio_file:
files = {
"file": audio_file
}
# Send the POST request
response = requests.post("http://127.0.0.1:8000/v1/audio/transcriptions", files=files)
Question or Issue
I installed the nexa by command from README:
Then I started server:
and it successfully run on 0.0.0.0/8000
I send post request to http://127.0.0.1:8000/v1/audio/transcriptions with body with adsolute path
And I got from request:
And from server: 127.0.0.1:53207 - "POST /v1/audio/transcriptions HTTP/1.1" 422 Unprocessable Entity
It is same if i send it to 0.0.0.0 or localhost.
OS
MacOs Sonoma
Python Version
3.10.15
Nexa SDK Version
0.0.9.0
GPU (if using one)
Apple M3