idkash1 commited on
Commit
c084ea1
·
verified ·
1 Parent(s): a970978

Update human_text_detect.py

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