-
Notifications
You must be signed in to change notification settings - Fork 1
GLM-OCR #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
GLM-OCR #19
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ instance/ | |
|
|
||
| # Scrapy stuff: | ||
| .scrapy | ||
|
|
||
| myenv/ | ||
| # Sphinx documentation | ||
| docs/_build/ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,2 +1,2 @@ | ||||||||
| # Backend API URL | ||||||||
| VITE_API_URL=https://taxai-77xc.onrender.com | ||||||||
| VITE_API_URL=http://127.0.0.1:8000 | ||||||||
|
||||||||
| VITE_API_URL=http://127.0.0.1:8000 | |
| # Leave VITE_API_URL unset here so the app can use its built-in fallback URL. | |
| # For local development, define VITE_API_URL in an untracked local env file instead. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # Backend API URL | ||
| VITE_API_URL=http://127.0.0.1:5000 | ||
| VITE_API_URL=http://127.0.0.1:8000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ocr_status()reports"glm_ocr_configured": Trueunconditionally, even iftransformers/torcharen’t installed or the model can’t be loaded/downloaded. This can mislead the/optionsAPI and the frontend. Consider making this flag reflect reality (e.g., attempt a lightweight import and/or_load_glm_ocr()in a try/except and returnconfigured: Falseplus an error detail when it fails).