Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
334 |
j = 0
|
335 |
-
while j < len(
|
336 |
-
|
337 |
j=j+1
|
338 |
-
|
|
|
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()
|