Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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
|