ducha-aiki commited on
Commit
9a61fd3
1 Parent(s): a97398f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -29,6 +29,8 @@ def inference(point1, point2, point3, point4):
29
  w = torch.stack(w)
30
  if len(pts.shape) == 2:
31
  pts = pts[None]
 
 
32
 
33
  l2 = fit_line(pts, w)
34
 
 
29
  w = torch.stack(w)
30
  if len(pts.shape) == 2:
31
  pts = pts[None]
32
+ if len(w.shape) == 1:
33
+ w = w[None]
34
 
35
  l2 = fit_line(pts, w)
36