minko186 commited on
Commit
3c25106
1 Parent(s): fe12823

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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(10, timeout_handler) # Set a timer for 10 seconds
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: