Spaces:
Sleeping
Sleeping
Commit
•
507e5e7
1
Parent(s):
de08842
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def on_image_upload(
|
|
100 |
session_state['image_with_prompt'] = copy.deepcopy(image)
|
101 |
print("Image changed")
|
102 |
nd_image = np.array(image)
|
103 |
-
session_state['feature'] =
|
104 |
|
105 |
return image, session_state
|
106 |
|
|
|
100 |
session_state['image_with_prompt'] = copy.deepcopy(image)
|
101 |
print("Image changed")
|
102 |
nd_image = np.array(image)
|
103 |
+
session_state['feature'] = predictor.set_image(nd_image)
|
104 |
|
105 |
return image, session_state
|
106 |
|