Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ import openai
|
|
| 9 |
import json
|
| 10 |
import datetime
|
| 11 |
import dateparser
|
|
|
|
| 12 |
|
| 13 |
# Monkey patch ApiClient.__del__
|
| 14 |
def noop_del(self):
|
|
@@ -17,26 +18,12 @@ def noop_del(self):
|
|
| 17 |
|
| 18 |
asana.api_client.ApiClient.__del__ = noop_del
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
# Monkey patch ApiClient.__del__
|
| 25 |
-
def noop_del(self):
|
| 26 |
-
print("Monkey patched ApiClient.__del__ called. Doing nothing.")
|
| 27 |
-
pass
|
| 28 |
-
|
| 29 |
-
asana.api_client.ApiClient.__del__ = noop_del
|
| 30 |
-
|
| 31 |
-
# Monkey patch multiprocessing.pool.Pool.__del__
|
| 32 |
-
def noop_pool_del(self):
|
| 33 |
-
print("Monkey patched multiprocessing.pool.Pool.__del__ called. Doing nothing.")
|
| 34 |
-
pass
|
| 35 |
-
|
| 36 |
-
multiprocessing.pool.Pool.__del__ = noop_pool_del
|
| 37 |
-
```
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
settings={
|
| 42 |
"PREFER_DATES_FROM": "future",
|
|
|
|
| 9 |
import json
|
| 10 |
import datetime
|
| 11 |
import dateparser
|
| 12 |
+
import multiprocessing.pool
|
| 13 |
|
| 14 |
# Monkey patch ApiClient.__del__
|
| 15 |
def noop_del(self):
|
|
|
|
| 18 |
|
| 19 |
asana.api_client.ApiClient.__del__ = noop_del
|
| 20 |
|
| 21 |
+
# Monkey patch multiprocessing.pool.Pool.__del__
|
| 22 |
+
def noop_pool_del(self):
|
| 23 |
+
print("Monkey patched multiprocessing.pool.Pool.__del__ called. Doing nothing.")
|
| 24 |
+
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
multiprocessing.pool.Pool.__del__ = noop_pool_del
|
| 27 |
|
| 28 |
settings={
|
| 29 |
"PREFER_DATES_FROM": "future",
|