Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -106,7 +106,7 @@ def filter_text(text,phraseC): | |
| 106 | 
             
            MAX_SEED = np.iinfo(np.int32).max
         | 
| 107 | 
             
            MAX_IMAGE_SIZE = 4096
         | 
| 108 |  | 
| 109 | 
            -
            @spaces.GPU(duration= | 
| 110 | 
             
            def infer(
         | 
| 111 | 
             
                prompt,
         | 
| 112 | 
             
                negative_prompt,
         | 
| @@ -287,7 +287,7 @@ with gr.Blocks(css=css) as demo: | |
| 287 | 
             
                                minimum=1,
         | 
| 288 | 
             
                                maximum=500,
         | 
| 289 | 
             
                                step=1,
         | 
| 290 | 
            -
                                value= | 
| 291 | 
             
                            )
         | 
| 292 | 
             
                            save_button = gr.Button("Save Image")
         | 
| 293 | 
             
                            image_path_output = gr.Text(visible=False)  # Hidden component to store the path
         | 
|  | |
| 106 | 
             
            MAX_SEED = np.iinfo(np.int32).max
         | 
| 107 | 
             
            MAX_IMAGE_SIZE = 4096
         | 
| 108 |  | 
| 109 | 
            +
            @spaces.GPU(duration=80)
         | 
| 110 | 
             
            def infer(
         | 
| 111 | 
             
                prompt,
         | 
| 112 | 
             
                negative_prompt,
         | 
|  | |
| 287 | 
             
                                minimum=1,
         | 
| 288 | 
             
                                maximum=500,
         | 
| 289 | 
             
                                step=1,
         | 
| 290 | 
            +
                                value=150,  # Replace with defaults that work for your model
         | 
| 291 | 
             
                            )
         | 
| 292 | 
             
                            save_button = gr.Button("Save Image")
         | 
| 293 | 
             
                            image_path_output = gr.Text(visible=False)  # Hidden component to store the path
         |