Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
·
3738ecc
1
Parent(s):
d8750b1
app.py
CHANGED
|
@@ -92,13 +92,13 @@ def predict_product(num1, num2):
|
|
| 92 |
is_correct_sofar = True
|
| 93 |
for i in range(len(predicted_digits_reversed)):
|
| 94 |
predicted_digit = predicted_digits_reversed[i]
|
| 95 |
-
ground_truth_digit = ground_truth_digits_reversed[i]
|
| 96 |
if i >= len(ground_truth_digits_reversed):
|
| 97 |
if predicted_digit == '0' and is_correct_sofar:
|
| 98 |
is_correct_digit = True
|
| 99 |
else:
|
| 100 |
is_correct_digit = False
|
| 101 |
else:
|
|
|
|
| 102 |
if predicted_digit == ground_truth_digit:
|
| 103 |
is_correct_digit = True
|
| 104 |
else:
|
|
|
|
| 92 |
is_correct_sofar = True
|
| 93 |
for i in range(len(predicted_digits_reversed)):
|
| 94 |
predicted_digit = predicted_digits_reversed[i]
|
|
|
|
| 95 |
if i >= len(ground_truth_digits_reversed):
|
| 96 |
if predicted_digit == '0' and is_correct_sofar:
|
| 97 |
is_correct_digit = True
|
| 98 |
else:
|
| 99 |
is_correct_digit = False
|
| 100 |
else:
|
| 101 |
+
ground_truth_digit = ground_truth_digits_reversed[i]
|
| 102 |
if predicted_digit == ground_truth_digit:
|
| 103 |
is_correct_digit = True
|
| 104 |
else:
|