Spaces:
Runtime error
Runtime error
vgvm
commited on
Commit
·
8d2cb8e
1
Parent(s):
c630983
remove unneeded pygltflib import
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ import matplotlib.cm
|
|
| 7 |
import mediapipe as mp
|
| 8 |
import numpy as np
|
| 9 |
import os
|
| 10 |
-
import pygltflib
|
| 11 |
import shutil
|
| 12 |
import struct
|
| 13 |
import tempfile
|
|
@@ -188,6 +187,7 @@ class face_image_to_face_mesh:
|
|
| 188 |
for quad in QUADS:
|
| 189 |
quadIndex = 1 + quadIndex
|
| 190 |
if True:
|
|
|
|
| 191 |
lines.append( "f " + " ".join([f'{vertex}/{vertex}/{quadIndex}' for vertex in quad]) )
|
| 192 |
else:
|
| 193 |
lines.append( "f " + " ".join([str(vertex) for vertex in quad]) )
|
|
|
|
| 7 |
import mediapipe as mp
|
| 8 |
import numpy as np
|
| 9 |
import os
|
|
|
|
| 10 |
import shutil
|
| 11 |
import struct
|
| 12 |
import tempfile
|
|
|
|
| 187 |
for quad in QUADS:
|
| 188 |
quadIndex = 1 + quadIndex
|
| 189 |
if True:
|
| 190 |
+
# is this is breaking babylonjs and hence gradio's 3D component?
|
| 191 |
lines.append( "f " + " ".join([f'{vertex}/{vertex}/{quadIndex}' for vertex in quad]) )
|
| 192 |
else:
|
| 193 |
lines.append( "f " + " ".join([str(vertex) for vertex in quad]) )
|