Andre commited on
Commit
8fec22d
·
1 Parent(s): 6420441

“Update”

Browse files
src/__pycache__/img_gen.cpython-311.pyc CHANGED
Binary files a/src/__pycache__/img_gen.cpython-311.pyc and b/src/__pycache__/img_gen.cpython-311.pyc differ
 
src/img_gen.py CHANGED
@@ -30,9 +30,9 @@ def generate_image(
30
 
31
  # Append the custom character (if provided)
32
  if characer_dropdown == "Wizard":
33
- prompt += f" A human wizard combat against the {prompt_alias}"
34
  elif characer_dropdown == "Warrior":
35
- prompt += f" A human warrior figths against the {prompt_alias}"
36
  else:
37
  pass
38
 
@@ -85,7 +85,7 @@ def generate_image(
85
  path = "images"
86
 
87
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
88
- output_filename = f"{path}/{timestamp}_{model_alias.replace(' ', '_').lower()}_{prompt_alias.replace(' ', '_').lower()}_{characer_dropdown.replace(' ', '_').lower()}.png"
89
  try:
90
  image.save(output_filename)
91
  except Exception as e:
 
30
 
31
  # Append the custom character (if provided)
32
  if characer_dropdown == "Wizard":
33
+ prompt += f" A wizard combat using magic against the {prompt_alias}"
34
  elif characer_dropdown == "Warrior":
35
+ prompt += f" A human warrior with his weapon figths against the {prompt_alias}"
36
  else:
37
  pass
38
 
 
85
  path = "images"
86
 
87
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
88
+ output_filename = f"{path}/{timestamp}_{seed}_{model_alias.replace(' ', '_').lower()}_{prompt_alias.replace(' ', '_').lower()}_{characer_dropdown.replace(' ', '_').lower()}.png"
89
  try:
90
  image.save(output_filename)
91
  except Exception as e: