bareethul commited on
Commit
71c6516
·
verified ·
1 Parent(s): cc827a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,9 +28,9 @@ predictor = TabularPredictor.load(
28
  def predict_tabular(height, width, depth, page_count):
29
  # Validate inputs (must be positive)
30
  if height <= 0 or width <= 0 or depth <= 0:
31
- raise ValueError("All dimensions must be positive numbers.")
32
  if page_count <= 0:
33
- raise ValueError("Page count must be a positive integer.")
34
 
35
  # Build a single row DataFrame with the provided inputs
36
  row = {
 
28
  def predict_tabular(height, width, depth, page_count):
29
  # Validate inputs (must be positive)
30
  if height <= 0 or width <= 0 or depth <= 0:
31
+ return "Please enter positive numbers for dimensions."
32
  if page_count <= 0:
33
+ return "Please enter a positive integer for page count."
34
 
35
  # Build a single row DataFrame with the provided inputs
36
  row = {