idkash1 commited on
Commit
63d13af
·
verified ·
1 Parent(s): 6cca969

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def process_analysis(task_id, text, model_name, topic, threshold):
38
  task_results[task_id] = {'status': 'error', 'error': answer}
39
  return
40
 
41
- # topic = check_topic(topic)
42
  hcRelativeToThreshold, hc, df_sentences = detect_human_text(model_name, topic, threshold, text)
43
 
44
  sentences = [
 
38
  task_results[task_id] = {'status': 'error', 'error': answer}
39
  return
40
 
41
+ topic = check_topic(topic)
42
  hcRelativeToThreshold, hc, df_sentences = detect_human_text(model_name, topic, threshold, text)
43
 
44
  sentences = [