gensym commited on
Commit
639772e
·
1 Parent(s): ee3dbc1
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -275,15 +275,15 @@ cleanup_thread.start()
275
 
276
  @spaces.GPU
277
  def preload():
278
- global pipeline
 
 
 
 
279
  pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
280
  pipeline.cuda()
281
  try:
282
  pipeline.preprocess_image(Image.fromarray(np.zeros((512, 512, 3), dtype=np.uint8))) # Preload rembg
283
  except:
284
  pass
285
-
286
- # Launch the Gradio app
287
- if __name__ == "__main__":
288
- preload()
289
  demo.launch()
 
275
 
276
  @spaces.GPU
277
  def preload():
278
+ pass
279
+
280
+
281
+ # Launch the Gradio app
282
+ if __name__ == "__main__":
283
  pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
284
  pipeline.cuda()
285
  try:
286
  pipeline.preprocess_image(Image.fromarray(np.zeros((512, 512, 3), dtype=np.uint8))) # Preload rembg
287
  except:
288
  pass
 
 
 
 
289
  demo.launch()