Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -44,7 +44,7 @@ def process_video(video_path, target, progress=gr.Progress()): | |
| 44 | 
             
                        break
         | 
| 45 |  | 
| 46 | 
             
                    # Resize the frame to 640x480
         | 
| 47 | 
            -
                    img_resized = cv2.resize(img, (640, 360))
         | 
| 48 | 
             
                    pil_img = Image.fromarray(cv2.cvtColor(img_resized, cv2.COLOR_BGR2RGB))
         | 
| 49 |  | 
| 50 | 
             
                    # Process single image
         | 
|  | |
| 44 | 
             
                        break
         | 
| 45 |  | 
| 46 | 
             
                    # Resize the frame to 640x480
         | 
| 47 | 
            +
                    #img_resized = cv2.resize(img, (640, 360))
         | 
| 48 | 
             
                    pil_img = Image.fromarray(cv2.cvtColor(img_resized, cv2.COLOR_BGR2RGB))
         | 
| 49 |  | 
| 50 | 
             
                    # Process single image
         | 
