Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
·
903ac0f
1
Parent(s):
c03e8f2
app.py
CHANGED
|
@@ -53,6 +53,8 @@ def predict_product(num1, num2):
|
|
| 53 |
past_key_values_per_model = {model_name: None for model_name in models}
|
| 54 |
predicted_annotations_per_model = {}
|
| 55 |
for step in range(max(MAX_PRODUCT_DIGITS_PER_MODEL.values())): # Set a maximum limit to prevent infinite loops
|
|
|
|
|
|
|
| 56 |
# Ground Truth
|
| 57 |
ground_truth_annotations = [(ground_truth_digit, None) for ground_truth_digit in ground_truth_digits_reversed[:step+1]]
|
| 58 |
ground_truth_annotations = ground_truth_annotations[::-1]
|
|
|
|
| 53 |
past_key_values_per_model = {model_name: None for model_name in models}
|
| 54 |
predicted_annotations_per_model = {}
|
| 55 |
for step in range(max(MAX_PRODUCT_DIGITS_PER_MODEL.values())): # Set a maximum limit to prevent infinite loops
|
| 56 |
+
import time
|
| 57 |
+
time.sleep(0.09)
|
| 58 |
# Ground Truth
|
| 59 |
ground_truth_annotations = [(ground_truth_digit, None) for ground_truth_digit in ground_truth_digits_reversed[:step+1]]
|
| 60 |
ground_truth_annotations = ground_truth_annotations[::-1]
|