Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
"resolved mac-os(arm),linux os local host problem"
Browse files Browse the repository at this point in the history
  • Loading branch information
adikal25 committed May 29, 2024
1 parent 5fee276 commit 8cc9946
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ def update_tesseract_path():
if __name__ == "__main__":
host = "localhost"
port = 5000
if os.name == 'posix':
port = 5001 # or 5002 as needed
app.run(port=port)
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}/")
Expand Down

0 comments on commit 8cc9946

Please sign in to comment.