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

"resolved mac-os(arm),linux os local host problem" #17

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
"resolved mac-os(arm),linux os local host problem"
adikal25 committed May 29, 2024
commit 8cc9946c11a079d48393c1cb25b57e60fd14f5f6
3 changes: 3 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -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}/")