AI4Bharat / IndicWav2Vec

Pretraining, fine-tuning and evaluation scripts for Indic-Wav2Vec2
https://indicnlp.ai4bharat.org/indicwav2vec
MIT License
82 stars 28 forks source link

Are API endpoints working? #28

Closed TejaswiniiB closed 2 years ago

TejaswiniiB commented 2 years ago

Hi, I am trying to run once using the provided api endpoints. But I am getting error as shown below. How to solve it?

{'_content': b'upstream connect error or disconnect/reset before headers. reset reason: remote reset', '_content_consumed': True, '_next': None, 'status_code': 503, 'headers': {'Server': 'nginx/1.23.1', 'Date': 'Mon, 26 Sep 2022 09:21:56 GMT', 
'Content-Type': 'text/plain', 'Content-Length': '85', 'Connection': 'keep-alive', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS'}, 'raw': <urllib3.response.HTTPResponse object at 0x7f458c896150>, 
'url': 'https://ai4b-dev-asr.ulcacontrib.org/asr/v1/recognize/hi?config=language&config=transcriptionFormat&config=audioFormat&audio=audioUri', 
'encoding': 'ISO-8859-1', 'history': [], 'reason': 'Service Unavailable', 'cookies': <RequestsCookieJar[]>, 'elapsed': 
datetime.timedelta(microseconds=902142), 'request': <PreparedRequest [GET]>, 'connection': 
<requests.adapters.HTTPAdapter object at 0x7f458c838290>}

image

tahirjmakhdoomi commented 2 years ago

It seems you are making a get request, However, a POST request is required.

mln-wave commented 2 years ago

Hi @tahirjmakhdoomi I updated as post request , but Im getting error as "Audio input not specified". But I have given audio uri as mentioned in here . Can you tell what to do to resolve it? image