Update human_text_detect.py
Browse files- human_text_detect.py +1 -1
human_text_detect.py
CHANGED
@@ -158,7 +158,7 @@ def detect_human_text(model_name, topic, text):
|
|
158 |
|
159 |
threshold = get_threshold_obj(model_name, topic)
|
160 |
print(f"threshold: {threshold}, results: {results}")
|
161 |
-
return
|
162 |
|
163 |
# Convert article text into object
|
164 |
def get_article_obj(text):
|
|
|
158 |
|
159 |
threshold = get_threshold_obj(model_name, topic)
|
160 |
print(f"threshold: {threshold}, results: {results}")
|
161 |
+
return round((results / threshold) - 1, 2), res['sentences']
|
162 |
|
163 |
# Convert article text into object
|
164 |
def get_article_obj(text):
|