francescoKrnl commited on
Commit
dc908ae
1 Parent(s): 9966fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def run(image, item_name):
38
  if image["composite"] is None:
39
  ones = Image.new("L", (512, 512), 255)
40
  return ones
41
- prompt = item_name + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
42
  inverted_image = ImageOps.invert(image["composite"])
43
  converted_image = inverted_image.convert("RGB")
44
  image_t = TF.to_tensor(converted_image) > 0.5
 
38
  if image["composite"] is None:
39
  ones = Image.new("L", (512, 512), 255)
40
  return ones
41
+ prompt = item_name.split()[1] + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
42
  inverted_image = ImageOps.invert(image["composite"])
43
  converted_image = inverted_image.convert("RGB")
44
  image_t = TF.to_tensor(converted_image) > 0.5