francescoKrnl commited on
Commit
55d75d7
1 Parent(s): ea8a706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -33,8 +33,7 @@ def run(image, item_name):
33
  print("sketch updated")
34
  if image is None:
35
  ones = Image.new("L", (512, 512), 255)
36
- temp_uri = pil_image_to_data_uri(ones)
37
- return ones, gr.update(link=temp_uri), gr.update(link=temp_uri)
38
  prompt = item_name + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
39
  image = image.convert("RGB")
40
  image_t = TF.to_tensor(image) > 0.5
 
33
  print("sketch updated")
34
  if image is None:
35
  ones = Image.new("L", (512, 512), 255)
36
+ return ones
 
37
  prompt = item_name + " professional 3d model. octane render, highly detailed, volumetric, dramatic lighting"
38
  image = image.convert("RGB")
39
  image_t = TF.to_tensor(image) > 0.5