fix bug that caused same seed to be redisplayed repeatedly

This commit is contained in:
Lincoln Stein 2022-09-07 22:50:55 -04:00
parent 56f155c590
commit 5c6b612a72

View File

@ -99,7 +99,7 @@ class DreamServer(BaseHTTPRequestHandler):
upscale_strength = post_data['upscale_strength']
upscale = [int(upscale_level),float(upscale_strength)] if upscale_level != '' else None
progress_images = 'progress_images' in post_data
seed = self.model.seed if int(post_data['seed']) == -1 else int(post_data['seed'])
seed = None if int(post_data['seed']) == -1 else int(post_data['seed'])
if with_variations != '':
parts = []