Answer the question
In order to leave comments, you need to log in
How to optimize a neural network bot for multiple users?
I am writing my first bot (on aiogram), in which I have embedded a style-transfer neural network on pytorch. My problem is this: the neural network works for some time (40-50 seconds), and then sends a response. If a user writes to the bot at this time, he, of course, will ignore it. Advise how best to organize the reception of photos from users (maybe their id should be added to the queue and retrieved from there, or something else). Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question