Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -27,6 +27,7 @@ def infer( 
     | 
|
| 27 | 
         
             
                guidance_scale,
         
     | 
| 28 | 
         
             
                lora_scale,
         
     | 
| 29 | 
         
             
                num_inference_steps,
         
     | 
| 
         | 
|
| 30 | 
         
             
                progress=gr.Progress(track_tqdm=True),
         
     | 
| 31 | 
         
             
            ):
         
     | 
| 32 | 
         
             
                if randomize_seed:
         
     | 
| 
         @@ -86,6 +87,10 @@ with gr.Blocks(css=css) as demo: 
     | 
|
| 86 | 
         
             
                            info="Choose which diffusion model to use"
         
     | 
| 87 | 
         
             
                        )
         
     | 
| 88 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 89 | 
         | 
| 90 | 
         
             
                    with gr.Row():
         
     | 
| 91 | 
         
             
                        prompt = gr.Text(
         
     | 
| 
         @@ -117,10 +122,6 @@ with gr.Blocks(css=css) as demo: 
     | 
|
| 117 | 
         
             
                        )
         
     | 
| 118 | 
         | 
| 119 | 
         
             
                        randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
         
     | 
| 120 | 
         
            -
                        with gr.Row():
         
     | 
| 121 | 
         
            -
                            remove_background = gr.Checkbox(
         
     | 
| 122 | 
         
            -
                                label="Delete background?", value=True
         
     | 
| 123 | 
         
            -
                            )
         
     | 
| 124 | 
         | 
| 125 | 
         
             
                        with gr.Row():
         
     | 
| 126 | 
         
             
                            width = gr.Slider(
         
     | 
| 
         @@ -178,7 +179,7 @@ with gr.Blocks(css=css) as demo: 
     | 
|
| 178 | 
         
             
                        guidance_scale,
         
     | 
| 179 | 
         
             
                        lora_scale,
         
     | 
| 180 | 
         
             
                        num_inference_steps,
         
     | 
| 181 | 
         
            -
                         
     | 
| 182 | 
         
             
                    ],
         
     | 
| 183 | 
         
             
                    outputs=[result, seed],
         
     | 
| 184 | 
         
             
                )
         
     | 
| 
         | 
|
| 27 | 
         
             
                guidance_scale,
         
     | 
| 28 | 
         
             
                lora_scale,
         
     | 
| 29 | 
         
             
                num_inference_steps,
         
     | 
| 30 | 
         
            +
                remove_background,
         
     | 
| 31 | 
         
             
                progress=gr.Progress(track_tqdm=True),
         
     | 
| 32 | 
         
             
            ):
         
     | 
| 33 | 
         
             
                if randomize_seed:
         
     | 
| 
         | 
|
| 87 | 
         
             
                            info="Choose which diffusion model to use"
         
     | 
| 88 | 
         
             
                        )
         
     | 
| 89 | 
         | 
| 90 | 
         
            +
                    with gr.Row():
         
     | 
| 91 | 
         
            +
                            remove_background = gr.Checkbox(
         
     | 
| 92 | 
         
            +
                                label="Delete background?", value=True
         
     | 
| 93 | 
         
            +
                            )
         
     | 
| 94 | 
         | 
| 95 | 
         
             
                    with gr.Row():
         
     | 
| 96 | 
         
             
                        prompt = gr.Text(
         
     | 
| 
         | 
|
| 122 | 
         
             
                        )
         
     | 
| 123 | 
         | 
| 124 | 
         
             
                        randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 125 | 
         | 
| 126 | 
         
             
                        with gr.Row():
         
     | 
| 127 | 
         
             
                            width = gr.Slider(
         
     | 
| 
         | 
|
| 179 | 
         
             
                        guidance_scale,
         
     | 
| 180 | 
         
             
                        lora_scale,
         
     | 
| 181 | 
         
             
                        num_inference_steps,
         
     | 
| 182 | 
         
            +
                        remove_background
         
     | 
| 183 | 
         
             
                    ],
         
     | 
| 184 | 
         
             
                    outputs=[result, seed],
         
     | 
| 185 | 
         
             
                )
         
     |