Skip to content

Tool to give AI generated score, to analyze with patterns how much input text is AI generated using AWS Bedrock Llama 3.1 405B

License

Notifications You must be signed in to change notification settings

omerbsezer/AI-Content-Detector

Repository files navigation

AI-Content-Detector

Tool using AWS Bedrock Service - Llama 3.1 405B

  • to give AI generated score,
  • to analyze and explain how much input text is AI generated.

Motivation

Structure

  • ai_generated_analyzer.py => prompt template, parse response
  • main.py => Streamlit GUI
    • left side => Input Text
    • right side => AI Generation Score, Evaluation, Detection Patterns

Run

  • Before run, please be sure that your AWS credential and config files are correctly configured on C:\Users\USERNAME\.aws\config and C:\Users\USERNAME\.aws\credentials. Also, getting permission request in your AWS account is required to use Llama 3.1 405B on AWS Bedrock. Code does not offer to use AWS Bedrock Llama 3.1 405B for free, you'll use your own AWS account.

  • Please download AWS CLI on your PC, then configure with your credentials to connect your AWS account.

aws config
  • C:\Users\USERNAME\.aws\config
[default]
region = us-west-2
output = json
  • C:\Users\USERNAME\.aws\credentials
[default]
aws_access_key_id = AKIXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXX
  • Another way, instead of using config/credential files, use your credentials with Environment Variables or copy to credentials to in your code as hardcoded (not suggested in the long term, but in short term, you can run the code).

  • Run:

git clone https://github.com/omerbsezer/AI-Content-Detector
pip install -r requirements.txt
python -m streamlit run .\main.py

AI Score for Human Generated Text

text-devto-human-analysis

AI Score for COMPLETELY AI Generated Text

text1-analysis

Tests

  • Sample text under the test-input-files directory

Detected Patterns - Analysis

AI Score for Human Generated Text in App

mydevto-post-score-analysis

AI Score for COMPLETELY AI Generated Text

image

image

About

Tool to give AI generated score, to analyze with patterns how much input text is AI generated using AWS Bedrock Llama 3.1 405B

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages