neverix commited on
Commit
2c44558
1 Parent(s): 4fc543d

Change face indices

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def main():
65
  with gr.Column():
66
  video = gr.Video()
67
  with gr.Column():
68
- model = gr.File()
69
 
70
  button.click(fn=generate, inputs=inputs, outputs=[video, model])
71
 
 
65
  with gr.Column():
66
  video = gr.Video()
67
  with gr.Column():
68
+ model = gr.Model3D()
69
 
70
  button.click(fn=generate, inputs=inputs, outputs=[video, model])
71
 
utils.py CHANGED
@@ -136,4 +136,4 @@ def save_obj(points, out_path):
136
  for v in verts:
137
  out_file.write("v " + " ".join(map(str, v)) + "\n")
138
  for f in faces:
139
- out_file.write("f " + " ".join(map(str, f)) + "\n")
 
136
  for v in verts:
137
  out_file.write("v " + " ".join(map(str, v)) + "\n")
138
  for f in faces:
139
+ out_file.write("f " + " ".join([str(x + 1) for x in f]) + "\n")