Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -216,7 +216,7 @@ def matchingScoreWithTimeout(sentence, content):
|
|
216 |
def timeout_handler():
|
217 |
raise TimeoutError("Function timed out")
|
218 |
|
219 |
-
timer = threading.Timer(
|
220 |
timer.start()
|
221 |
|
222 |
try:
|
|
|
216 |
def timeout_handler():
|
217 |
raise TimeoutError("Function timed out")
|
218 |
|
219 |
+
timer = threading.Timer(5, timeout_handler) # Set a timer for 10 seconds
|
220 |
timer.start()
|
221 |
|
222 |
try:
|