yejunliang23 commited on
Commit
3fe6827
Β·
verified Β·
1 Parent(s): d8a3a99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -174,6 +174,7 @@ def load_model():
174
  return model
175
 
176
  with gr.Blocks() as demo:
 
177
  gr.Markdown("""
178
  ## Image to 3D Asset with [TRELLIS](https://trellis3d.github.io/)
179
  * Upload an image and click "Generate" to create a 3D asset. If the image has alpha channel, it be used as the mask. Otherwise, we use `rembg` to remove the background.
@@ -268,5 +269,4 @@ if __name__ == "__main__":
268
  #print(f"CUDA Available: {torch.cuda.is_available()}")
269
  #print(f"CUDA Version: {torch.version.cuda}")
270
  #print(f"Number of GPUs: {torch.cuda.device_count()}")
271
- demo.load(fn=load_model, inputs=None, outputs=None)
272
  demo.launch(debug=True)
 
174
  return model
175
 
176
  with gr.Blocks() as demo:
177
+ demo.load(fn=load_model, inputs=None, outputs=None)
178
  gr.Markdown("""
179
  ## Image to 3D Asset with [TRELLIS](https://trellis3d.github.io/)
180
  * Upload an image and click "Generate" to create a 3D asset. If the image has alpha channel, it be used as the mask. Otherwise, we use `rembg` to remove the background.
 
269
  #print(f"CUDA Available: {torch.cuda.is_available()}")
270
  #print(f"CUDA Version: {torch.version.cuda}")
271
  #print(f"Number of GPUs: {torch.cuda.device_count()}")
 
272
  demo.launch(debug=True)