vilarin commited on
Commit
dc0bccf
1 Parent(s): 2dae3d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -62,7 +62,9 @@ def generate_image(
62
 
63
  if seed == -1:
64
  seed = random.randint(0, MAX_SEED)
65
-
 
 
66
  generator = torch.Generator().manual_seed(seed)
67
 
68
  prompt = str(translator.translate(prompt, 'English'))
 
62
 
63
  if seed == -1:
64
  seed = random.randint(0, MAX_SEED)
65
+
66
+ seed = float(seed)
67
+
68
  generator = torch.Generator().manual_seed(seed)
69
 
70
  prompt = str(translator.translate(prompt, 'English'))