Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
·
c8d010a
1
Parent(s):
7c08a74
app.py
CHANGED
@@ -55,7 +55,7 @@ def predict_product(num1, num2):
|
|
55 |
for step in range(max(MAX_PRODUCT_DIGITS_PER_MODEL.values())): # Set a maximum limit to prevent infinite loops
|
56 |
# Ground Truth
|
57 |
if not valid_input:
|
58 |
-
ground_truth_annotations = []
|
59 |
else:
|
60 |
ground_truth_annotations = [(ground_truth_digit, None) for ground_truth_digit in ground_truth_digits_reversed[:step+1]]
|
61 |
ground_truth_annotations = ground_truth_annotations[::-1]
|
|
|
55 |
for step in range(max(MAX_PRODUCT_DIGITS_PER_MODEL.values())): # Set a maximum limit to prevent infinite loops
|
56 |
# Ground Truth
|
57 |
if not valid_input:
|
58 |
+
ground_truth_annotations = [('Invalid Input!', None)]
|
59 |
else:
|
60 |
ground_truth_annotations = [(ground_truth_digit, None) for ground_truth_digit in ground_truth_digits_reversed[:step+1]]
|
61 |
ground_truth_annotations = ground_truth_annotations[::-1]
|