Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def fn(vid, fps, color):
|
|
47 |
processed_frames_no_bg.append(np.array(processed_image)) # Save no-background frame
|
48 |
|
49 |
# Compose with background for changed background video
|
50 |
-
background = Image.new("RGBA", pil_image.size, color + (255,))
|
51 |
composed_image = Image.composite(pil_image, background, mask)
|
52 |
processed_frames_changed_bg.append(np.array(composed_image))
|
53 |
|
|
|
47 |
processed_frames_no_bg.append(np.array(processed_image)) # Save no-background frame
|
48 |
|
49 |
# Compose with background for changed background video
|
50 |
+
background = Image.new("RGBA", pil_image.size, color + str((255,)))
|
51 |
composed_image = Image.composite(pil_image, background, mask)
|
52 |
processed_frames_changed_bg.append(np.array(composed_image))
|
53 |
|