Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update click event to expose a Gradio API endpoint
#1
by
						
florentgbelidji
	
							HF Staff
						- opened
							
					
    	
        app.py
    CHANGED
    
    | @@ -187,7 +187,8 @@ with demo: | |
| 187 | 
             
                image_button = gr.Button("Run")
         | 
| 188 | 
             
                image_button.click(fn=inference,
         | 
| 189 | 
             
                           inputs=inp, 
         | 
| 190 | 
            -
                           outputs=out | 
|  | |
| 191 |  | 
| 192 |  | 
| 193 | 
             
            demo.launch()
         | 
|  | |
| 187 | 
             
                image_button = gr.Button("Run")
         | 
| 188 | 
             
                image_button.click(fn=inference,
         | 
| 189 | 
             
                           inputs=inp, 
         | 
| 190 | 
            +
                           outputs=out,
         | 
| 191 | 
            +
                           api_name="clip_caption")
         | 
| 192 |  | 
| 193 |  | 
| 194 | 
             
            demo.launch()
         | 
