da03 commited on
Commit
9e26e4d
·
1 Parent(s): 49164cf
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,13 +53,13 @@ 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
- import time
57
- time.sleep(0.1)
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]
61
  # Predicted
62
  for model_name in models:
 
 
63
  model = models[model_name]
64
  if finished_per_model[model_name]:
65
  continue
 
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]
59
  # Predicted
60
  for model_name in models:
61
+ import time
62
+ time.sleep(0.034)
63
  model = models[model_name]
64
  if finished_per_model[model_name]:
65
  continue