Skip to content
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

Fix Broken Coordinate System in Parser #112

Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 7 additions & 2 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ const onRedirectCallback = (appState: any) => {
);
};

const { REACT_APP_USE_AUTH0, REACT_APP_API_ROOT_URL: api_root_url } =
process.env;
// const { REACT_APP_USE_AUTH0, REACT_APP_API_ROOT_URL: api_root_url } =
// process.env;

const { REACT_APP_USE_AUTH0 } = process.env;

const api_root_url = "http://localhost:8000";

console.log("OpenContracts is using Auth0: ", REACT_APP_USE_AUTH0);
console.log("OpenContracts frontend target api root", api_root_url);
Expand All @@ -40,6 +44,7 @@ const authLink = new ApolloLink((operation, forward) => {
return forward(operation);
});

console.log("api_root_url", api_root_url);
const httpLink = createHttpLink({
uri: `${api_root_url}/graphql/`,
});
Expand Down
2 changes: 1 addition & 1 deletion opencontractserver/utils/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def extract_pawls_from_pdfs_bytes(
pdf_bytes: bytes,
) -> list[PawlsPagePythonType]:

from pawls.commands.preprocess import process_tesseract
from pdfpreprocessor.preprocessors.tesseract import process_tesseract

pdf_fragment_folder_path = pathlib.Path("/tmp/user_0/pdf_fragments")
pdf_fragment_folder_path.mkdir(parents=True, exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ drf-extra-fields==3.4.1 # https://github.com/Hipo/drf-extra-fields
# ------------------------------------------------------------------------------
# Pawls preprocessors are available as a command line utility in their repo for now
# BUT we can install them from their github repo subdirectory using the syntax below:
git+https://github.com/JSv4/pawls#egg=pawls&subdirectory=cli
git+https://github.com/JSv4/PDF-Preprocessors@v1.0.5
scikit-learn==1.1.3
pdfplumber
pytesseract
Expand Down