kumahiyo commited on
Commit
c98a613
1 Parent(s): f44af0a

remove _seed string

Browse files
Files changed (1) hide show
  1. main.py +6 -5
main.py CHANGED
@@ -29,12 +29,13 @@ def draw(data: Data):
29
  if data.member_secret != "" and data.member_secret == os.environ.get("MEMBER_SECRET"):
30
  print(f"Is CUDA available: {torch.cuda.is_available()}")
31
 
32
- text = re.sub('^#', '', data.string)
33
-
34
- if '_seed' in text:
35
- seed = 1024
36
  else:
37
- seed = random.randrange(1024)
 
 
 
38
 
39
  # prompt = '(('+text+')) (( photograph )), highly detailed, sharp focus, 8k, 4k, (( photorealism )), detailed, saturated, portrait, 50mm, F/2.8, 1m away, ( global illumination, studio light, volumetric light ), ((( multicolor lights )))'
40
  prompt = '(('+text+')) (( photograph )), highly detailed, sharp focus, 8k, 4k, (( photorealism )), detailed, saturated, portrait, 50mm, F/2.8, 1m away, ((( multicolor lights )))'
 
29
  if data.member_secret != "" and data.member_secret == os.environ.get("MEMBER_SECRET"):
30
  print(f"Is CUDA available: {torch.cuda.is_available()}")
31
 
32
+ if '_seed' in data.string:
33
+ seed = 1024
 
 
34
  else:
35
+ seed = random.randrange(1024)
36
+
37
+ text = re.sub('^#', '', data.string)
38
+ text = re.sub('_seed', '', text)
39
 
40
  # prompt = '(('+text+')) (( photograph )), highly detailed, sharp focus, 8k, 4k, (( photorealism )), detailed, saturated, portrait, 50mm, F/2.8, 1m away, ( global illumination, studio light, volumetric light ), ((( multicolor lights )))'
41
  prompt = '(('+text+')) (( photograph )), highly detailed, sharp focus, 8k, 4k, (( photorealism )), detailed, saturated, portrait, 50mm, F/2.8, 1m away, ((( multicolor lights )))'