cccmatthew commited on
Commit
698a957
1 Parent(s): 4ef9400

Code Change in Streamlit

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +1 -1
README.md CHANGED
@@ -8,5 +8,5 @@ app_file: app.py
8
  pinned: false
9
  ---
10
 
11
- # image2textapp
12
- Group 30 Demo - Name Entity Recognition
 
8
  pinned: false
9
  ---
10
 
11
+ # Name Entity Recognition
12
+ Group 30 Demo
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=1):
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=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()