Spaces:
Runtime error
Runtime error
Initial Commit
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def get_coords(evt: gr.SelectData):
|
|
| 19 |
def inference(image, input_label):
|
| 20 |
print(input_label)
|
| 21 |
predictor.set_image(image)
|
| 22 |
-
input_point = np.array([[int(input_label['
|
| 23 |
input_label = np.array([1])
|
| 24 |
masks, scores, logits = predictor.predict(
|
| 25 |
point_coords=input_point,
|
|
|
|
| 19 |
def inference(image, input_label):
|
| 20 |
print(input_label)
|
| 21 |
predictor.set_image(image)
|
| 22 |
+
input_point = np.array([[int(input_label['label'].split(',')[0]), int(input_label['label'].split(',')[1])]])
|
| 23 |
input_label = np.array([1])
|
| 24 |
masks, scores, logits = predictor.predict(
|
| 25 |
point_coords=input_point,
|