mlbench123 commited on
Commit
76040c7
·
verified ·
1 Parent(s): fb63d76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -172,8 +172,8 @@ def save_dxf_spline(inflated_contours, scaling_factor, height):
172
 
173
  for contour in inflated_contours:
174
  # Ensure contour has enough points
175
- if len(contour) < spline_degree + 1:
176
- raise gr.Error(f"Contour must have at least {spline_degree + 1} points, but has {len(contour)} points.")
177
  try:
178
  # resampled_contour = resample_contour(contour)
179
  points = [
 
172
 
173
  for contour in inflated_contours:
174
  # Ensure contour has enough points
175
+ if len(contour) < degree + 1:
176
+ raise gr.Error(f"Contour must have at least {degree + 1} points, but has {len(contour)} points.")
177
  try:
178
  # resampled_contour = resample_contour(contour)
179
  points = [