Spaces:
Running
Running
timeout the CPU threads in 180 seconds
Browse files
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])
|