Spaces:
Running
on
Zero
Running
on
Zero
make a real glb hopefully
Browse files
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 |
-
|
|
|
|
|
|
|
|
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)
|