Pendrokar commited on
Commit
d36b523
1 Parent(s): 11114cd

timeout the CPU threads in 180 seconds

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -912,8 +912,8 @@ def synthandreturn(text):
912
 
913
  thread1.start()
914
  thread2.start()
915
- thread1.join()
916
- thread2.join()
917
  #debug
918
  # print(results)
919
  # print(list(results.keys())[0])
 
912
 
913
  thread1.start()
914
  thread2.start()
915
+ thread1.join(180)
916
+ thread2.join(180)
917
  #debug
918
  # print(results)
919
  # print(list(results.keys())[0])