Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -58,8 +58,8 @@ def generate(prompt, 
     | 
|
| 58 | 
         
             
                    condition = True
         
     | 
| 59 | 
         
             
                # elif mode == "image-to-video" and (image is not None):
         
     | 
| 60 | 
         
             
                elif mode == "image-to-video":
         
     | 
| 61 | 
         
            -
                     
     | 
| 62 | 
         
            -
                    video =  [load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/penguin.png")]
         
     | 
| 63 | 
         
             
                    condition = True
         
     | 
| 64 | 
         
             
                else:
         
     | 
| 65 | 
         
             
                   condition=False
         
     | 
| 
         @@ -169,7 +169,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo: 
     | 
|
| 169 | 
         
             
                      t2v_prompt = gr.Textbox(label="prompt")
         
     | 
| 170 | 
         
             
                      t2v_button = gr.Button()
         
     | 
| 171 | 
         
             
                    with gr.Tab("image-to-video") as image_tab:
         
     | 
| 172 | 
         
            -
                      image = gr.Image(label="input image")
         
     | 
| 173 | 
         
             
                      i2v_prompt = gr.Textbox(label="prompt")
         
     | 
| 174 | 
         
             
                      i2v_button = gr.Button()
         
     | 
| 175 | 
         
             
                    with gr.Tab("video-to-video") as video_tab:
         
     | 
| 
         | 
|
| 58 | 
         
             
                    condition = True
         
     | 
| 59 | 
         
             
                # elif mode == "image-to-video" and (image is not None):
         
     | 
| 60 | 
         
             
                elif mode == "image-to-video":
         
     | 
| 61 | 
         
            +
                    video = [load_image(image)]
         
     | 
| 62 | 
         
            +
                    #video =  [load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/penguin.png")]
         
     | 
| 63 | 
         
             
                    condition = True
         
     | 
| 64 | 
         
             
                else:
         
     | 
| 65 | 
         
             
                   condition=False
         
     | 
| 
         | 
|
| 169 | 
         
             
                      t2v_prompt = gr.Textbox(label="prompt")
         
     | 
| 170 | 
         
             
                      t2v_button = gr.Button()
         
     | 
| 171 | 
         
             
                    with gr.Tab("image-to-video") as image_tab:
         
     | 
| 172 | 
         
            +
                      image = gr.Image(label="input image", type="filepath")
         
     | 
| 173 | 
         
             
                      i2v_prompt = gr.Textbox(label="prompt")
         
     | 
| 174 | 
         
             
                      i2v_button = gr.Button()
         
     | 
| 175 | 
         
             
                    with gr.Tab("video-to-video") as video_tab:
         
     |