Skip to content

Commit

Permalink
client: add debug fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
patrit committed May 8, 2021
1 parent be371ac commit 431ed03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
start = time.time()
ret = requests.post("http://localhost:8080/mrz/api/v1/analyze_image", json=data)
print(time.time() - start)
if ret.status_code != 200:
ret2 = requests.post("http://localhost:8080/mrz/api/v1/analyze_image?debugonly=true", json=data)
print(ret2.text)
print(json.dumps(
{
"status_code": ret.status_code,
Expand Down

0 comments on commit 431ed03

Please sign in to comment.