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