Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -135,7 +135,7 @@ def process_input_video(reference_video, width, height, 
     | 
|
| 135 | 
         
             
                    #video = load_video(reference_video)
         
     | 
| 136 | 
         | 
| 137 | 
         
             
                    # Process video for canny edges
         
     | 
| 138 | 
         
            -
                    processed_video = process_video_for_canny( 
     | 
| 139 | 
         | 
| 140 | 
         
             
                    # Create a preview video file for display
         
     | 
| 141 | 
         
             
                    with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmp_file:
         
     | 
| 
         @@ -154,7 +154,7 @@ def process_video_for_control(reference_video, control_type, width, height): 
     | 
|
| 154 | 
         | 
| 155 | 
         
             
                if control_type == "canny":
         
     | 
| 156 | 
         
             
                    # This should not be called for canny since it's pre-processed
         
     | 
| 157 | 
         
            -
                    processed_video = process_video_for_canny( 
     | 
| 158 | 
         
             
                else:
         
     | 
| 159 | 
         
             
                    processed_video = video
         
     | 
| 160 | 
         | 
| 
         @@ -304,7 +304,7 @@ with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Lexend Deca"), 
     | 
|
| 304 | 
         | 
| 305 | 
         
             
                        reference_video = gr.Video(
         
     | 
| 306 | 
         
             
                            label="Reference Video",
         
     | 
| 307 | 
         
            -
                            height= 
     | 
| 308 | 
         
             
                        )
         
     | 
| 309 | 
         | 
| 310 | 
         
             
                        prompt = gr.Textbox(
         
     | 
| 
         | 
|
| 135 | 
         
             
                    #video = load_video(reference_video)
         
     | 
| 136 | 
         | 
| 137 | 
         
             
                    # Process video for canny edges
         
     | 
| 138 | 
         
            +
                    processed_video = process_video_for_canny(reference_video, width, height)
         
     | 
| 139 | 
         | 
| 140 | 
         
             
                    # Create a preview video file for display
         
     | 
| 141 | 
         
             
                    with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmp_file:
         
     | 
| 
         | 
|
| 154 | 
         | 
| 155 | 
         
             
                if control_type == "canny":
         
     | 
| 156 | 
         
             
                    # This should not be called for canny since it's pre-processed
         
     | 
| 157 | 
         
            +
                    processed_video = process_video_for_canny(reference_video, width, height)
         
     | 
| 158 | 
         
             
                else:
         
     | 
| 159 | 
         
             
                    processed_video = video
         
     | 
| 160 | 
         | 
| 
         | 
|
| 304 | 
         | 
| 305 | 
         
             
                        reference_video = gr.Video(
         
     | 
| 306 | 
         
             
                            label="Reference Video",
         
     | 
| 307 | 
         
            +
                            height=400
         
     | 
| 308 | 
         
             
                        )
         
     | 
| 309 | 
         | 
| 310 | 
         
             
                        prompt = gr.Textbox(
         
     |