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

How to use the model in a multithreaded application #16

Closed
oneprofittips opened this issue Sep 13, 2023 · 3 comments
Closed

How to use the model in a multithreaded application #16

oneprofittips opened this issue Sep 13, 2023 · 3 comments

Comments

@oneprofittips
Copy link

How to use the model in a multithreaded application? Is it possible to create an asp net core singleton and use the Detect method? Will it not give errors in predictions?

@dme-compunet
Copy link
Owner

@oneprofittips I think it should work well in multithreaded mode, if you see any problems then give feedback here.

@oneprofittips
Copy link
Author

oneprofittips commented Sep 14, 2023

Here is a singleton service I create and use it in my application. Is everything right?
image

@dme-compunet
Copy link
Owner

@oneprofittips Yes, it should work without problems.

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

No branches or pull requests

2 participants