ntsc207 commited on
Commit
9d2a9cf
·
verified ·
1 Parent(s): 63c0b9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -154,7 +154,7 @@ def yolov9_inference(model_id, img_path=None, vid_path=None, tracking_algorithm
154
  if len(x) > 1:
155
  # Create spline interpolation
156
  x_smooth = np.linspace(x.min(), x.max(), 500)
157
- spline = make_interp_spline(x, y, k=4) # Cubic spline interpolation
158
  y_smooth = spline(x_smooth)
159
 
160
  # Append the smoothed data to the list
 
154
  if len(x) > 1:
155
  # Create spline interpolation
156
  x_smooth = np.linspace(x.min(), x.max(), 500)
157
+ spline = make_interp_spline(x, y, k=3) # Cubic spline interpolation
158
  y_smooth = spline(x_smooth)
159
 
160
  # Append the smoothed data to the list