KingNish commited on
Commit
70e42a3
1 Parent(s): 402afc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -128,7 +128,7 @@ def process(image, bg):
128
 
129
  with gr.Blocks(theme=gr.themes.Ocean()) as demo:
130
  with gr.Row():
131
- in_video = gr.Video(label="Input Video", interactive=True if isinstance(bg, str) and bg.startswith("#"):
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):
 
128
 
129
  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):