freealise commited on
Commit
5cff29b
1 Parent(s): 130e694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -330,12 +330,13 @@ def get_mesh(image, depth, blur_data, loadall, dcolor):
330
  scene.export(glb_file.name)
331
  print('file - ok')
332
 
333
- dcolor = json.loads(dcolor)
334
  j = 0
335
- while j < len(dcolor):
336
- dcolor[j] = dcolor[j] / 255
337
  j=j+1
338
- return gr.Model3D(value=glb_file.name, clear_color=dcolor), glb_file.name, ",".join(mesh_n)
 
339
 
340
  def blur_image(image, depth, blur_data):
341
  blur_a = blur_data.split()
 
330
  scene.export(glb_file.name)
331
  print('file - ok')
332
 
333
+ bg = json.loads(dcolor)
334
  j = 0
335
+ while j < len(bg):
336
+ bg[j] = bg[j] / 255
337
  j=j+1
338
+ print(bg)
339
+ return gr.Model3D(value=glb_file.name, clear_color=bg), glb_file.name, ",".join(mesh_n)
340
 
341
  def blur_image(image, depth, blur_data):
342
  blur_a = blur_data.split()