dkatz2391 commited on
Commit
e819550
·
verified ·
1 Parent(s): 2f98862

Version: 1.1.2 - Removed torch_dtype from from_pretrained call # Applied: # - Removed unsupported inputs/outputs kwargs on demo.load/unload # - Converted NumPy arrays to lists in pack_state for JSON safety # - Fixed indentation in Blocks event-handlers # - Verified clear() callbacks use only callback + outputs # - Removed `torch_dtype` arg from TrellisTextTo3DPipeline.from_pretrained # - Bumped version, added comments at change sites

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,9 +1,10 @@
1
- # Version: 1.1.1 - Targeted signature and state fixes
2
  # Applied:
3
  # - Removed unsupported inputs/outputs kwargs on demo.load/unload
4
  # - Converted NumPy arrays to lists in pack_state for JSON safety
5
  # - Fixed indentation in Blocks event-handlers
6
  # - Verified clear() callbacks use only callback + outputs
 
7
  # - Bumped version, added comments at change sites
8
 
9
  import gradio as gr
@@ -218,7 +219,7 @@ with gr.Blocks(delete_cache=(600, 600), title="TRELLIS Text-to-3D") as demo:
218
  inputs=[output_buf],
219
  outputs=[model_output, download_gs],
220
  ).then(
221
- lambda: download_gs.update(interactive=True),
222
  outputs=[download_gs],
223
  )
224
 
@@ -233,9 +234,9 @@ with gr.Blocks(delete_cache=(600, 600), title="TRELLIS Text-to-3D") as demo:
233
  )
234
 
235
  if __name__ == "__main__":
 
236
  pipeline = TrellisTextTo3DPipeline.from_pretrained(
237
- "JeffreyXiang/TRELLIS-text-xlarge",
238
- torch_dtype=torch.float16
239
  )
240
  if torch.cuda.is_available(): pipeline = pipeline.to("cuda")
241
  demo.queue().launch(debug=True)
 
1
+ # Version: 1.1.2 - Removed torch_dtype from from_pretrained call
2
  # Applied:
3
  # - Removed unsupported inputs/outputs kwargs on demo.load/unload
4
  # - Converted NumPy arrays to lists in pack_state for JSON safety
5
  # - Fixed indentation in Blocks event-handlers
6
  # - Verified clear() callbacks use only callback + outputs
7
+ # - Removed `torch_dtype` arg from TrellisTextTo3DPipeline.from_pretrained
8
  # - Bumped version, added comments at change sites
9
 
10
  import gradio as gr
 
219
  inputs=[output_buf],
220
  outputs=[model_output, download_gs],
221
  ).then(
222
+ lambda: download_gaussian.update(interactive=True),
223
  outputs=[download_gs],
224
  )
225
 
 
234
  )
235
 
236
  if __name__ == "__main__":
237
+ # Removed torch_dtype argument to match current API
238
  pipeline = TrellisTextTo3DPipeline.from_pretrained(
239
+ "JeffreyXiang/TRELLIS-text-xlarge"
 
240
  )
241
  if torch.cuda.is_available(): pipeline = pipeline.to("cuda")
242
  demo.queue().launch(debug=True)