Spaces:
Runtime error
Runtime error
cccmatthew
commited on
Commit
•
698a957
1
Parent(s):
4ef9400
Code Change in Streamlit
Browse files
README.md
CHANGED
@@ -8,5 +8,5 @@ app_file: app.py
|
|
8 |
pinned: false
|
9 |
---
|
10 |
|
11 |
-
#
|
12 |
-
Group 30 Demo
|
|
|
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=
|
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()
|