Spaces:
bla
/
Runtime error

bla commited on
Commit
5dc8194
·
verified ·
1 Parent(s): 5b2f03e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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