minor changes for personal use
This commit is contained in:
parent
111011c643
commit
769c28a8a2
2 changed files with 4 additions and 4 deletions
|
@ -2,4 +2,4 @@ FROM python:3.6
|
|||
ADD . /code
|
||||
WORKDIR /code
|
||||
RUN pip install -r requirements.txt
|
||||
CMD exec gunicorn -k gevent -b 0.0.0.0:$PORT asr:app
|
||||
CMD exec gunicorn -k gevent -b 0.0.0.0:443 asr:app
|
||||
|
|
|
@ -54,9 +54,9 @@ def recognise():
|
|||
|
||||
access_token, lang = request.host.split('.', 1)[0].split('-', 1)
|
||||
|
||||
auth_req = requests.get(f"{AUTH_URL}/api/v1/me/token", headers={'Authorization': f"Bearer {access_token}"})
|
||||
if not auth_req.ok:
|
||||
abort(401)
|
||||
# auth_req = requests.get(f"{AUTH_URL}/api/v1/me/token", headers={'Authorization': f"Bearer {access_token}"})
|
||||
# if not auth_req.ok:
|
||||
# abort(401)
|
||||
|
||||
chunks = iter(list(parse_chunks(stream)))
|
||||
content = next(chunks).decode('utf-8')
|
||||
|
|
Reference in a new issue