Update app.py
Browse files
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 |
-
|
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 = [
|