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

SPP client; readme; clean up process PDF to use SPP client #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kyleclo
Copy link
Contributor

@kyleclo kyleclo commented Apr 2, 2021

No description provided.

@kyleclo kyleclo requested a review from lucylw April 2, 2021 00:11
Copy link
Contributor

@lucylw lucylw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, see comment about ports (might be something we run a setup script for -- set env variables)

def process(self, infile: str, outfile: str):
with open(infile, 'rb') as f_in:
files = {"pdf_file": (f_in.name, f_in, "multipart/form-data")}
r = requests.post('http://localhost:8080/detect', files=files)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe pick a different port for spp to avoid collision. i think currently, the flask app and grobid run on 8070 and 8080?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants