Nick088 commited on
Commit
30e12e1
β€’
1 Parent(s): 360ca6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def run_inference(prompt, stable_diffusion_model, num_inference_steps, guidance_
34
 
35
  # view it also as 3d model or not output
36
  if model_3d:
37
- return os.path.join(f"output_minecraft_skins/{filename}"), glb_pathos.path.join(f"output_minecraft_skins/{filename}_3d_model.glb")
38
  else:
39
  return os.path.join(f"output_minecraft_skins/{filename}"), None
40
 
@@ -47,7 +47,7 @@ guidance_scale = gr.Number(minimum=0.1, value=7.5, label="Guidance Scale", info=
47
  model_precision_type = gr.Dropdown(["fp16", "fp32"], value="fp16", label="Model Precision Type", info="The precision type to load the model, like fp16 which is faster, or fp32 which gives better results")
48
  seed = gr.Number(value=42, label="Seed", info="A starting point to initiate generation, put 0 for a random one")
49
  filename = gr.Textbox(label="Output Image Name", info="The name of the file of the output image skin, keep the.png", value="output-skin.png")
50
- model_3d = gr.Checkbox(label="See in 3D", info="View the generated skin as a 3D Model", value=True)
51
  verbose = gr.Checkbox(label="Verbose Output", info="Produce more detailed output while running", value=False)
52
 
53
 
 
34
 
35
  # view it also as 3d model or not output
36
  if model_3d:
37
+ return os.path.join(f"output_minecraft_skins/{filename}"), os.path.join(f"output_minecraft_skins/{filename}_3d_model.glb")
38
  else:
39
  return os.path.join(f"output_minecraft_skins/{filename}"), None
40
 
 
47
  model_precision_type = gr.Dropdown(["fp16", "fp32"], value="fp16", label="Model Precision Type", info="The precision type to load the model, like fp16 which is faster, or fp32 which gives better results")
48
  seed = gr.Number(value=42, label="Seed", info="A starting point to initiate generation, put 0 for a random one")
49
  filename = gr.Textbox(label="Output Image Name", info="The name of the file of the output image skin, keep the.png", value="output-skin.png")
50
+ model_3d = gr.Checkbox(label="See as 3D Model too", info="View the generated skin as a 3D Model too", value=True)
51
  verbose = gr.Checkbox(label="Verbose Output", info="Produce more detailed output while running", value=False)
52
 
53