Update app.py
Browse files
app.py
CHANGED
@@ -259,6 +259,7 @@ def segment_with_points(
|
|
259 |
# Open the image and get its dimensions
|
260 |
first_frame = session_state["first_frame"]
|
261 |
h, w = first_frame.shape[:2]
|
|
|
262 |
transparent_background = Image.fromarray(first_frame).convert("RGBA")
|
263 |
|
264 |
# Define the circle radius as a fraction of the smaller dimension
|
|
|
259 |
# Open the image and get its dimensions
|
260 |
first_frame = session_state["first_frame"]
|
261 |
h, w = first_frame.shape[:2]
|
262 |
+
from PIL import Image
|
263 |
transparent_background = Image.fromarray(first_frame).convert("RGBA")
|
264 |
|
265 |
# Define the circle radius as a fraction of the smaller dimension
|