cccmatthew commited on
Commit
8178e23
1 Parent(s): 8c7ab50

Fix timeout

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def merge_entities(sentence, entities):
75
  annotated_sentence += sentence[last_end:]
76
  return annotated_sentence
77
 
78
- def send_request_with_retry(url, headers, json_data, retries=3, backoff_factor=3):
79
  """Send request with retries on timeouts and HTTP 503 errors."""
80
  for attempt in range(retries):
81
  start_time = time.time()
 
75
  annotated_sentence += sentence[last_end:]
76
  return annotated_sentence
77
 
78
+ def send_request_with_retry(url, headers, json_data, retries=5, backoff_factor=10):
79
  """Send request with retries on timeouts and HTTP 503 errors."""
80
  for attempt in range(retries):
81
  start_time = time.time()