Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|