Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -148,7 +148,7 @@ def process_images(image1, image2): | |
| 148 | 
             
                return predicted_flow
         | 
| 149 |  | 
| 150 | 
             
            title = "Interactive demo: Perceiver for optical flow"
         | 
| 151 | 
            -
            description = "Demo for predicting optical flow with Perceiver IO. To use it, simply upload 2 images (e.g. 2 subsequent frames) or use the example images below and click 'submit' to let the model predict the flow of the pixels. Results will show up in a few seconds."
         | 
| 152 | 
             
            article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2107.14795'>Perceiver IO: A General Architecture for Structured Inputs & Outputs</a> | <a href='https://deepmind.com/blog/article/building-architectures-that-can-handle-the-worlds-data/'>Official blog</a></p>"
         | 
| 153 | 
             
            examples =[[f"image_{idx}.png" for idx in range(len(urls))]]
         | 
| 154 |  | 
|  | |
| 148 | 
             
                return predicted_flow
         | 
| 149 |  | 
| 150 | 
             
            title = "Interactive demo: Perceiver for optical flow"
         | 
| 151 | 
            +
            description = "Demo for predicting optical flow (i.e. the task of, given 2 images, estimating the 2D displacement for each pixel in the first image) with Perceiver IO. To use it, simply upload 2 images (e.g. 2 subsequent frames) or use the example images below and click 'submit' to let the model predict the flow of the pixels. Results will show up in a few seconds."
         | 
| 152 | 
             
            article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2107.14795'>Perceiver IO: A General Architecture for Structured Inputs & Outputs</a> | <a href='https://deepmind.com/blog/article/building-architectures-that-can-handle-the-worlds-data/'>Official blog</a></p>"
         | 
| 153 | 
             
            examples =[[f"image_{idx}.png" for idx in range(len(urls))]]
         | 
| 154 |  | 
