diff --git a/scripts/client_mock.py b/scripts/client_mock.py index e3960cf..f80506f 100644 --- a/scripts/client_mock.py +++ b/scripts/client_mock.py @@ -42,14 +42,11 @@ def parse_args(): def main(args): - response = requests.post("http://0.0.0.0:8080", data=open(args.pdf_path, "rb")) - + response = requests.post("http://127.0.0.1:5000", data=open(args.pdf_path, "rb")) response.raise_for_status() - predictions = response.json() print(json.dumps(predictions, indent=2)) - annotate(args.pdf_path, predictions) diff --git a/src/run_service.py b/src/run_service.py index 58528b2..be9ebcb 100644 --- a/src/run_service.py +++ b/src/run_service.py @@ -58,7 +58,7 @@ def main(args): predictor = initialize_predictor() - app.run(host="0.0.0.0", port=8080) + app.run(host="127.0.0.1", port=5000) if __name__ == "__main__":