Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	
		liuyizhang
		
	commited on
		
		
					Commit 
							
							·
						
						e5f7fa3
	
1
								Parent(s):
							
							2e4e1c8
								
update app.py
Browse files- app.py +4 -0
- requirements.txt +1 -0
    	
        app.py
    CHANGED
    
    | @@ -323,4 +323,8 @@ if __name__ == "__main__": | |
| 323 | 
             
                                    input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold], outputs=[gallery])
         | 
| 324 | 
             
                    # task_type.change(fn=change_task_type, inputs=[task_type], outputs=[inpaint_prompt])
         | 
| 325 |  | 
|  | |
|  | |
|  | |
|  | |
| 326 | 
             
                block.launch(server_name='0.0.0.0', debug=args.debug, share=args.share)
         | 
|  | |
| 323 | 
             
                                    input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold], outputs=[gallery])
         | 
| 324 | 
             
                    # task_type.change(fn=change_task_type, inputs=[task_type], outputs=[inpaint_prompt])
         | 
| 325 |  | 
| 326 | 
            +
                    DESCRIPTION = '### This demo from [Grounded-Segment-Anything](https://github.com/IDEA-Research/Grounded-Segment-Anything). Thanks for their excellent work.'
         | 
| 327 | 
            +
                    DESCRIPTION += f'<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/yizhangliu/Grounded-Segment-Anything?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
         | 
| 328 | 
            +
                    gr.Markdown(DESCRIPTION)
         | 
| 329 | 
            +
             | 
| 330 | 
             
                block.launch(server_name='0.0.0.0', debug=args.debug, share=args.share)
         | 
    	
        requirements.txt
    CHANGED
    
    | @@ -1,3 +1,4 @@ | |
|  | |
| 1 | 
             
            addict
         | 
| 2 | 
             
            diffusers
         | 
| 3 | 
             
            gradio
         | 
|  | |
| 1 | 
            +
            accelerate
         | 
| 2 | 
             
            addict
         | 
| 3 | 
             
            diffusers
         | 
| 4 | 
             
            gradio
         |