Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update gradio_app.py
Browse files- gradio_app.py +1 -1
 
    	
        gradio_app.py
    CHANGED
    
    | 
         @@ -194,7 +194,7 @@ def get_image(image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123, i 
     | 
|
| 194 | 
         
             
                        if cn_videos.shape[2] > frames:
         
     | 
| 195 | 
         
             
                            idxs = []
         
     | 
| 196 | 
         
             
                            for i in range(frames):
         
     | 
| 197 | 
         
            -
                                index = int((i + 0.5) *  
     | 
| 198 | 
         
             
                                idxs.append(min(index, cn_videos.shape[2] - 1))
         
     | 
| 199 | 
         
             
                            cn_videos = cn_videos[:, :, idxs, :, :]
         
     | 
| 200 | 
         
             
                            print("cn_videos.shape after slicing", cn_videos.shape)
         
     | 
| 
         | 
|
| 194 | 
         
             
                        if cn_videos.shape[2] > frames:
         
     | 
| 195 | 
         
             
                            idxs = []
         
     | 
| 196 | 
         
             
                            for i in range(frames):
         
     | 
| 197 | 
         
            +
                                index = int((i + 0.5) * cn_videos.shape[2] / frames)
         
     | 
| 198 | 
         
             
                                idxs.append(min(index, cn_videos.shape[2] - 1))
         
     | 
| 199 | 
         
             
                            cn_videos = cn_videos[:, :, idxs, :, :]
         
     | 
| 200 | 
         
             
                            print("cn_videos.shape after slicing", cn_videos.shape)
         
     |