KingNish commited on
Commit
7396e3a
1 Parent(s): 70e42a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -130,9 +130,6 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
130
  with gr.Row():
131
  in_video = gr.Video(label="Input Video", interactive=True)
132
  color_rgb = tuple(int(bg[i:i+2], 16) for i in (1, 3, 5))
133
- background = Image.new("RGBA", image_size, color_rgb + (255,))
134
- elif isinstance(bg, Image.Image):
135
- background = bg.convert("RGBA").resize(image_size))
136
  stream_image = gr.Image(label="Streaming Output", visible=False)
137
  out_video = gr.Video(label="Final Output Video")
138
  submit_button = gr.Button("Change Background", interactive=True)
 
130
  with gr.Row():
131
  in_video = gr.Video(label="Input Video", interactive=True)
132
  color_rgb = tuple(int(bg[i:i+2], 16) for i in (1, 3, 5))
 
 
 
133
  stream_image = gr.Image(label="Streaming Output", visible=False)
134
  out_video = gr.Video(label="Final Output Video")
135
  submit_button = gr.Button("Change Background", interactive=True)