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

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
fix: Removed the first app.run (app.run(port=port))
  • Loading branch information
jaydenstokes authored Jun 11, 2024
1 parent 8cc9946 commit 6f6f5d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,8 @@ 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)
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}/")
Expand Down

0 comments on commit 6f6f5d7

Please sign in to comment.