mihalykiss commited on
Commit
04b9742
·
1 Parent(s): a2b0083

third ensemble model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def classify_text(text):
41
  f"----"
42
  f"Results will appear here..."
43
  )
44
- return results_message
45
 
46
  inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True).to(device)
47
 
@@ -86,7 +86,7 @@ title = "AI Text Detector"
86
  description = """
87
 
88
 
89
- This tool uses the ModernBERT model to identify whether a given text was written by a human or generated by artificial intelligence (AI). It works with a soft voting ensemble using three models, combining their outputs to improve the accuracy.
90
  <br>
91
 
92
  <div style="line-height: 1.8;">
 
41
  f"----"
42
  f"Results will appear here..."
43
  )
44
+ return result_message
45
 
46
  inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True).to(device)
47
 
 
86
  description = """
87
 
88
 
89
+ This tool uses the <b>ModernBERT</b> model to identify whether a given text was written by a human or generated by artificial intelligence (AI). It works with a soft voting ensemble using <b>three</b> models, combining their outputs to improve the accuracy.
90
  <br>
91
 
92
  <div style="line-height: 1.8;">