File size: 229 Bytes
ec95891
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr

# Load the Gradio space
demo = gr.load(name="JeffreyXiang/TRELLIS", src="spaces")


# Disable API access for all functions
if hasattr(demo, "fns"):
    for fn in demo.fns.values():
        fn.api_name = False