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

While launching the serve.py, the model will load twice #8

Closed
thsno02 opened this issue Jun 21, 2022 · 2 comments
Closed

While launching the serve.py, the model will load twice #8

thsno02 opened this issue Jun 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@thsno02
Copy link
Owner

thsno02 commented Jun 21, 2022

This may be I incorrectly paste print information.

@thsno02 thsno02 added the bug Something isn't working label Jun 21, 2022
@thsno02
Copy link
Owner Author

thsno02 commented Jun 22, 2022

disable debug in flask

serve.run(host="0.0.0.0", port=8000)

@thsno02 thsno02 closed this as completed Jun 22, 2022
@thsno02 thsno02 reopened this Jul 25, 2022
@thsno02
Copy link
Owner Author

thsno02 commented Jul 25, 2022

The model still loaded twice, due to I load the model the very first part. However, I only need to load the model in the _init part.

@thsno02 thsno02 closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant