Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 32 |
if page_count <= 0:
|
| 33 |
-
|
| 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 = {
|