Update human_text_detect.py
Browse files- human_text_detect.py +3 -3
human_text_detect.py
CHANGED
|
@@ -14,9 +14,6 @@ import re
|
|
| 14 |
import os
|
| 15 |
import gc
|
| 16 |
|
| 17 |
-
torch.cuda.empty_cache()
|
| 18 |
-
gc.collect()
|
| 19 |
-
|
| 20 |
logging.basicConfig(level=logging.INFO)
|
| 21 |
|
| 22 |
def read_all_csv_files(pattern):
|
|
@@ -83,6 +80,9 @@ def get_threshold_obj(model_name, topic):
|
|
| 83 |
return threshold
|
| 84 |
|
| 85 |
def detect_human_text(model_name, topic, text):
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# Get null data
|
| 88 |
print('Get null data')
|
|
|
|
| 14 |
import os
|
| 15 |
import gc
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
logging.basicConfig(level=logging.INFO)
|
| 18 |
|
| 19 |
def read_all_csv_files(pattern):
|
|
|
|
| 80 |
return threshold
|
| 81 |
|
| 82 |
def detect_human_text(model_name, topic, text):
|
| 83 |
+
|
| 84 |
+
torch.cuda.empty_cache()
|
| 85 |
+
gc.collect()
|
| 86 |
|
| 87 |
# Get null data
|
| 88 |
print('Get null data')
|