idkash1 commited on
Commit
452b5b1
·
verified ·
1 Parent(s): 656f70b

Update human_text_detect.py

Browse files
Files changed (1) hide show
  1. 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 (results / threshold) - 1, res['sentences']
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 str(round((results / threshold) - 1, 2)), res['sentences']
162
 
163
  # Convert article text into object
164
  def get_article_obj(text):