dkatz2391 commited on
Commit
1a9c5b9
·
verified ·
1 Parent(s): 5af1eea

make a real glb hopefully

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -345,4 +345,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
345
  if __name__ == "__main__":
346
  pipeline = TrellisTextTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-text-xlarge")
347
  pipeline.cuda()
348
- demo.launch()
 
 
 
 
345
  if __name__ == "__main__":
346
  pipeline = TrellisTextTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-text-xlarge")
347
  pipeline.cuda()
348
+ # Explicitly allow serving files from the base temp dir and the Gradio cache dir
349
+ allowed_paths = [TMP_DIR, "/tmp/gradio"]
350
+ print(f"Launching Gradio demo with allowed_paths: {allowed_paths}")
351
+ demo.launch(allowed_paths=allowed_paths)