Nick088 commited on
Commit
569dc94
Β·
verified Β·
1 Parent(s): 9bbeb12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -36,8 +36,12 @@ def generate(
36
  else:
37
  sd_model = "minecraft-skins-sdxl"
38
 
39
- subprocess.run(["python", f"Python_Scripts/{sd_model}.py", prompt, num_inference_steps, guidance_scale, num_images_per_prompt, model_precision_type, seed, output_image_name, verbose_opt])
 
 
40
 
 
 
41
  return os.path.join(f"output_minecraft_skins/{output_image_name}")
42
 
43
 
 
36
  else:
37
  sd_model = "minecraft-skins-sdxl"
38
 
39
+ os.chdir("Python_Scripts")
40
+
41
+ subprocess.run(["python", f"{sd_model}.py", prompt, num_inference_steps, guidance_scale, num_images_per_prompt, model_precision_type, seed, output_image_name, verbose_opt])
42
 
43
+ os.chdir("..")
44
+
45
  return os.path.join(f"output_minecraft_skins/{output_image_name}")
46
 
47