dooraven commited on
Commit
161f131
1 Parent(s): 9de15c1

hmm i don't get it

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -117,7 +117,10 @@ def generate_3D(input, model_name='base1B', guidance_scale=3.0, grid_size=128):
117
  set_state('Converting to mesh...')
118
 
119
  uniqid = uuid.uuid4()
120
- file_path = f'/tmp/mesh-{uniqid}.npy'
 
 
 
121
  save_ply(pc, file_path)
122
 
123
  set_state('')
@@ -150,7 +153,9 @@ def ply_to_glb(ply_file, glb_file):
150
 
151
  def save_ply(pc, file_name):
152
  # Produce a mesh (with vertex colors)
 
153
  with open(file_name, 'wb') as f:
 
154
  pc.save(f)
155
 
156
 
 
117
  set_state('Converting to mesh...')
118
 
119
  uniqid = uuid.uuid4()
120
+ file_path = f"/tmp/mesh-{uniqid}.npy"
121
+
122
+ print('file_path', file_path)
123
+
124
  save_ply(pc, file_path)
125
 
126
  set_state('')
 
153
 
154
  def save_ply(pc, file_name):
155
  # Produce a mesh (with vertex colors)
156
+ print('file_name', file_name)
157
  with open(file_name, 'wb') as f:
158
+ print('file_name', f)
159
  pc.save(f)
160
 
161