Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
•
cc2aeb6
1
Parent(s):
82df865
app.py
CHANGED
@@ -90,14 +90,11 @@ def predict_product(num1, num2):
|
|
90 |
|
91 |
predicted_annotations = []
|
92 |
is_correct_sofar = True
|
93 |
-
|
94 |
-
if model_name == 'implicit':
|
95 |
if '=' not in predicted_digits_reversed:
|
96 |
-
print ('aaa')
|
97 |
predicted_annotations = [(predicted_digit, None) for predicted_digit in predicted_digits_reversed]
|
98 |
predicted_digits_reversed = []
|
99 |
else:
|
100 |
-
print ('bbbaaa')
|
101 |
equal_sign_position = predicted_digits_reversed.index('=')
|
102 |
predicted_annotations = [(predicted_digit, None) for predicted_digit in predicted_digits_reversed[:equal_sign_position+1]]
|
103 |
predicted_digits_reversed = predicted_digits_reversed[equal_sign_position+1:]
|
|
|
90 |
|
91 |
predicted_annotations = []
|
92 |
is_correct_sofar = True
|
93 |
+
if model_name == 'explicit':
|
|
|
94 |
if '=' not in predicted_digits_reversed:
|
|
|
95 |
predicted_annotations = [(predicted_digit, None) for predicted_digit in predicted_digits_reversed]
|
96 |
predicted_digits_reversed = []
|
97 |
else:
|
|
|
98 |
equal_sign_position = predicted_digits_reversed.index('=')
|
99 |
predicted_annotations = [(predicted_digit, None) for predicted_digit in predicted_digits_reversed[:equal_sign_position+1]]
|
100 |
predicted_digits_reversed = predicted_digits_reversed[equal_sign_position+1:]
|