diff --git a/app/app.py b/app/app.py index d060138..f11d420 100644 --- a/app/app.py +++ b/app/app.py @@ -275,6 +275,8 @@ def update_tesseract_path(): if __name__ == "__main__": host = "localhost" port = 5000 + if os.name == 'posix': + port = 5001 logging.basicConfig(filename="app.log", filemode="w", level=logging.DEBUG, format="%(levelname)s - %(message)s") print("[*] Starting OcrRoo Server") print(f"[*] OcrRoo Server running on http://{host}:{port}/")