This project is a FastAPI project for Abhsher hacakthon. that detects if a given string is a valid report for online crimes or not.
It uses Python Fastapi and Supabase database as a a database, and deploys on Railway.
Sign up on a Supabase account and create a new project/ or you can use supabase cli. with this DB schema:
CREATE TABLE IF NOT EXISTS `crimes` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`Report` TEXT NOT NULL,
`Score` Numeric NOT NULL,
`created_at` Date NOT NULL default current_timestamp,
`Status` TEXT NOT NULL
);
Then, Add the supabase env variable to your .env file I gave an example in .evn.example file.
- Install packages using
pip install -r requirements.txt
- Run locally using
python main.py
This project was made with the help of
- Yasir Al-Abbas
- Designed the ml model
- Omar Al-Abbas
- Designed the ml model
- Abdullah Mzaien
- Developed the server and deployed it