Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Commit 
							
							·
						
						6a826b3
	
1
								Parent(s):
							
							b7b00e2
								
disable user upload
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -257,20 +257,21 @@ def split_image(image: Image.Image) -> List[Image.Image]: 
     | 
|
| 257 | 
         | 
| 258 | 
         
             
            with gr.Blocks(delete_cache=(600, 600)) as demo:
         
     | 
| 259 | 
         
             
                gr.Markdown("""
         
     | 
| 260 | 
         
            -
                ## Image to 3D Asset with [TRELLIS](https:// 
     | 
| 261 | 
         
            -
             
     | 
| 262 | 
         
            -
                *  
     | 
| 263 | 
         
            -
                
         
     | 
| 264 | 
         
            -
             
     | 
| 265 | 
         
            -
                 
     | 
| 
         | 
|
| 266 | 
         | 
| 267 | 
         
             
                with gr.Row():
         
     | 
| 268 | 
         
             
                    with gr.Column():
         
     | 
| 269 | 
         
             
                        with gr.Tabs() as input_tabs:
         
     | 
| 270 | 
         
             
                            with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
         
     | 
| 271 | 
         
            -
                                image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
         
     | 
| 272 | 
         
             
                            with gr.Tab(label="Multiple Images", id=1) as multiimage_input_tab:
         
     | 
| 273 | 
         
            -
                                multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3)
         
     | 
| 274 | 
         
             
                                gr.Markdown("""
         
     | 
| 275 | 
         
             
                                    Input different views of the object in separate images. 
         
     | 
| 276 | 
         | 
| 
         | 
|
| 257 | 
         | 
| 258 | 
         
             
            with gr.Blocks(delete_cache=(600, 600)) as demo:
         
     | 
| 259 | 
         
             
                gr.Markdown("""
         
     | 
| 260 | 
         
            +
                ## Image to 3D Asset with [TRELLIS](https://github.com/microsoft/TRELLIS)
         
     | 
| 261 | 
         
            +
             
     | 
| 262 | 
         
            +
                * Select an example image and click **"Generate"** to create a 3D asset.
         
     | 
| 263 | 
         
            +
                * If you're satisfied with the result, click **"Extract GLB"** to download and view the GLB file.
         
     | 
| 264 | 
         
            +
             
     | 
| 265 | 
         
            +
                ⚠️ **Disclaimer**: This demo does **not** support user-uploaded images. For more functionality, please explore [other TRELLIS spaces](https://huggingface.co/spaces?q=TRELLIS).
         
     | 
| 266 | 
         
            +
            """)
         
     | 
| 267 | 
         | 
| 268 | 
         
             
                with gr.Row():
         
     | 
| 269 | 
         
             
                    with gr.Column():
         
     | 
| 270 | 
         
             
                        with gr.Tabs() as input_tabs:
         
     | 
| 271 | 
         
             
                            with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
         
     | 
| 272 | 
         
            +
                                image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300, interactive=False)
         
     | 
| 273 | 
         
             
                            with gr.Tab(label="Multiple Images", id=1) as multiimage_input_tab:
         
     | 
| 274 | 
         
            +
                                multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3, interactive=False)
         
     | 
| 275 | 
         
             
                                gr.Markdown("""
         
     | 
| 276 | 
         
             
                                    Input different views of the object in separate images. 
         
     | 
| 277 | 
         |