desklib commited on
Commit
fe9b4da
·
verified ·
1 Parent(s): ae015f6

modify readme

Browse files
Files changed (1) hide show
  1. README.md +2 -7
README.md CHANGED
@@ -102,15 +102,10 @@ def main():
102
  model.to(device)
103
 
104
  # --- Example Input text ---
105
- text_ai = "AI detection refers to the process of identifying whether a given piece of content, such as text, images, or audio, has been generated by artificial intelligence. This is achieved using various machine learning techniques, including perplexity analysis, entropy measurements, linguistic pattern recognition, and neural network classifiers trained on human and AI-generated data. Advanced AI detection tools assess writing style, coherence, and statistical properties to determine the likelihood of AI involvement. These tools are widely used in academia, journalism, and content moderation to ensure originality, prevent misinformation, and maintain ethical standards. As AI-generated content becomes increasingly sophisticated, AI detection methods continue to evolve, integrating deep learning models and ensemble techniques for improved accuracy."
106
- text_human = "It is estimated that a major part of the content in the internet will be generated by AI / LLMs by 2025. This leads to a lot of misinformation and credibility related issues. That is why it is important to have accurate tools to identify if content is AI-generated or human-written."
107
 
108
  # --- Run prediction ---
109
- probability, predicted_label = predict_single_text(text_ai, model, tokenizer, device)
110
- print(f"Probability of being AI generated: {probability:.4f}")
111
- print(f"Predicted label: {'AI Generated' if predicted_label == 1 else 'Not AI Generated'}")
112
-
113
- probability, predicted_label = predict_single_text(text_human, model, tokenizer, device)
114
  print(f"Probability of being AI generated: {probability:.4f}")
115
  print(f"Predicted label: {'AI Generated' if predicted_label == 1 else 'Not AI Generated'}")
116
 
 
102
  model.to(device)
103
 
104
  # --- Example Input text ---
105
+ text = "AI detection refers to the process of identifying whether a given piece of content, such as text, images, or audio, has been generated by artificial intelligence. This is achieved using various machine learning techniques, including perplexity analysis, entropy measurements, linguistic pattern recognition, and neural network classifiers trained on human and AI-generated data. Advanced AI detection tools assess writing style, coherence, and statistical properties to determine the likelihood of AI involvement. These tools are widely used in academia, journalism, and content moderation to ensure originality, prevent misinformation, and maintain ethical standards. As AI-generated content becomes increasingly sophisticated, AI detection methods continue to evolve, integrating deep learning models and ensemble techniques for improved accuracy."
 
106
 
107
  # --- Run prediction ---
108
+ probability, predicted_label = predict_single_text(text, model, tokenizer, device)
 
 
 
 
109
  print(f"Probability of being AI generated: {probability:.4f}")
110
  print(f"Predicted label: {'AI Generated' if predicted_label == 1 else 'Not AI Generated'}")
111