-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FastAPI and PDFAct new implementation (#2)
* Replace Flask with FastAPI * Add PDFAct driver --------- Co-authored-by: AnnaMarika01 <[email protected]>
- Loading branch information
1 parent
24103fa
commit b18be23
Showing
33 changed files
with
485 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ jobs: | |
fetch-depth: 1 | ||
|
||
- name: Lint the Shell scripts | ||
run: shellcheck ./gunicorn.sh | ||
run: shellcheck ./uvicorn.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
logs | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
version: '3' | ||
|
||
networks: | ||
web: | ||
internal: | ||
driver: bridge | ||
|
||
services: | ||
app: | ||
image: "ghcr.io/data-house/pdf-text-extractor:main" | ||
environment: | ||
GUNICORN_WORKERS: 2 | ||
GUNICORN_WORKERS_TIMEOUT: 600 | ||
build: | ||
context: . | ||
networks: | ||
- web | ||
- internal | ||
env_file: | ||
- .env | ||
ports: | ||
- "5200:5000" | ||
- "5002:5000" | ||
|
||
pdfact: | ||
image: "ghcr.io/data-house/pdfact:main" | ||
networks: | ||
- internal |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Flask==2.3.2 | ||
pandas==2.0.2 | ||
pymupdf==1.22.5 | ||
numpy~=1.24.3 | ||
requests==2.31.0 | ||
gunicorn==20.1.0; platform_system != "Windows" | ||
requests==2.32.0 | ||
fastapi~=0.111.0 | ||
pydantic~=2.7.1 | ||
pydantic_settings~=2.2.1 | ||
uvicorn==0.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import logging | ||
|
||
from text_extractor.logger import init_logger | ||
|
||
logger = logging.getLogger(__name__) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .color import Color | ||
from .document import Document | ||
from .font import Font | ||
from .paragraph import Paragraph, Metadata | ||
from .position import Position |
Oops, something went wrong.