Closed lance0916 closed 4 years ago
Thanks for your report. @snailwudada
Did you open the browser inspector? I notice that when I'm in the chrome inspector tab Network, I will receive twice generate requests, without it, it's normal, only once. And according to browser network log, only one request sent, so this may be not a bug. Maybe some http cache header should be set to prevent unnecessary payload.
By the way, I have suffered the verbose Flask log a lot. Welcome to any refining advice.
Thank you, I understand. The generate interface generates images based on the latentCode. When it is on the merger page, a new latentCode is calculated based on the latentCode of the two images, and then the new latentCode is used to call the generate interface to generate the image.
Yes, initial requests are necessary.
@app.route('/generate', methods=['GET'])