dawood HF staff commited on
Commit
5cfc294
1 Parent(s): 68a7adb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -177,7 +177,11 @@ def do_inference(input_3d, sample_seed=0, do_sampling=False, do_marching_cubes=F
177
  artist_mesh.export(save_name)
178
  mesh.vertices = mesh.vertices[:, [0, 2, 1]]
179
  artist_mesh.vertices = artist_mesh.vertices[:, [0, 2, 1]]
180
- return input_save_name, mesh, save_name, artist_mesh
 
 
 
 
181
 
182
 
183
  _HEADER_ = '''
 
177
  artist_mesh.export(save_name)
178
  mesh.vertices = mesh.vertices[:, [0, 2, 1]]
179
  artist_mesh.vertices = artist_mesh.vertices[:, [0, 2, 1]]
180
+ input_wireframe_save_name = f"input_wireframe_{int(time.time())}.obj"
181
+ output_wireframe_save_name = f"output_wireframe_{int(time.time())}.obj"
182
+ mesh.export(input_wireframe_save_name)
183
+ artist_mesh.export(output_wireframe_save_name)
184
+ return input_save_name, input_wireframe_save_name, save_name, output_wireframe_save_name
185
 
186
 
187
  _HEADER_ = '''