{"id":21089073,"url":"https://github.com/touradbaba/fraud_det_app_mlops","last_synced_at":"2026-02-17T14:02:55.332Z","repository":{"id":222124615,"uuid":"756343719","full_name":"TouradBaba/Fraud_det_app_MLOps","owner":"TouradBaba","description":"Fraud Detection App integrating MLOps for seamless deployment and continuous enhancement.","archived":false,"fork":false,"pushed_at":"2025-04-01T01:11:07.000Z","size":374379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T12:47:49.383Z","etag":null,"topics":["azure","ci-cd","cicd","data-science","flask","github-actions","machine-learning","mlflow","mlops"],"latest_commit_sha":null,"homepage":"https://frauddetectionmodel.azurewebsites.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TouradBaba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-12T13:37:28.000Z","updated_at":"2025-04-01T01:11:09.000Z","dependencies_parsed_at":"2024-02-12T14:54:37.755Z","dependency_job_id":"d55ac841-9e4c-4ee3-943f-fb1241bf1b60","html_url":"https://github.com/TouradBaba/Fraud_det_app_MLOps","commit_stats":null,"previous_names":["touradbaba/fraud_det_model_mlops","touradbaba/fraud_det_app_mlops"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouradBaba%2FFraud_det_app_MLOps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouradBaba%2FFraud_det_app_MLOps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouradBaba%2FFraud_det_app_MLOps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouradBaba%2FFraud_det_app_MLOps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TouradBaba","download_url":"https://codeload.github.com/TouradBaba/Fraud_det_app_MLOps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251879108,"owners_count":21658689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","ci-cd","cicd","data-science","flask","github-actions","machine-learning","mlflow","mlops"],"created_at":"2024-11-19T21:23:00.692Z","updated_at":"2026-02-17T14:02:50.265Z","avatar_url":"https://github.com/TouradBaba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fraud Detection App\n\nThis repository contains a Fraud Detection App, This application utilizes machine learning to predict potentially fraudulent activities in financial transactions. Whether you're accessing the app on the cloud or locally, Follow the guide below to navigate through the setup proces.\n\n**Key Features:**\n\n- **Predictive Power:** Machine learning algorithm to identify potential fraudulent activities in financial transactions.\n\n- **Cloud Accessibility:** Access the app through the cloud using the URL: [https://frauddetectionmodel.azurewebsites.net](https://frauddetectionmodel.azurewebsites.net).\n\n- **Local Deployment:** If preferred, set up and use the app locally by following the installation and usage instructions provided in this guide.\n\n**Enhancements and Continuous Improvement:**\n\n- **CI/CD Integration:** Continuous Integration/Continuous Deployment (CI/CD) pipeline.\n\n- **Workflow for Data Drift Monitoring:** Workflow for monitoring data drift, which triggers model retraining and deployment in response to changes in the dataset, ensuring the app's accuracy over time.\n\n- **Monthly Retraining:** The app undergoes monthly retraining, enhancing its predictive capabilities.\n\nFollow the comprehensive guide below to navigate through the setup process.\n\n## Table of Contents\n\n1. [Prerequisites](#prerequisites)\n2. [Installation](#installation)\n3. [Usage on the Cloud](#usage-on-the-cloud)\n4. [Usage Locally](#usage-locally)\n5. [Endpoints](#endpoints)\n6. [File Upload](#file-upload)\n7. [Response](#response)\n\n## Prerequisites\n\n- Python 3.11\n- Virtualenv (optional but recommended)\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/TouradBaba/Fraud_det_model_MLOps.git\n    ```\n\n2. Navigate to the app directory:\n\n    ```bash\n    cd app\n    ```\n\n3. Create and activate a virtual environment (optional but recommended):\n\n    ```bash\n    python -m venv venv\n    source venv/bin/activate  # Linux/Mac\n    .\\venv\\Scripts\\activate  # Windows\n    ```\n\n4. Install dependencies:\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n5. Change the app port:\n    In the `app.py` file, change the port from:\n\n    ```bash\n            app.run(host=\"0.0.0.0\", port=8000)\n    ```\n\n    to:\n\n    ```bash\n            app.run(port=5001)\n    ```\n\n## Usage on the Cloud\n\n1. Access the app through a web browser: [https://frauddetectionmodel.azurewebsites.net](https://frauddetectionmodel.azurewebsites.net)\n\n2. Use the provided credentials for basic authentication:\n\n    - Username: admin\n    - Password: admin\n\n## Usage Locally\n\n1. Navigate to the app directory:\n\n    ```bash\n    cd app\n    ```\n\n2. Run the Flask app:\n\n    ```bash\n    python app.py\n    ```\n\n3. Access the app through a web browser: [http://localhost:5001/](http://localhost:5001/)\n\n4. Use the provided credentials for basic authentication:\n\n    - Username: admin\n    - Password: admin\n\n## Endpoints\n\n- `/`: Home page with a form for making predictions.\n- `/predict`: Endpoint for making predictions with JSON data.\n- `/predict-file`: Endpoint for making predictions with a CSV file upload.\n\n## File Upload\n\nTo make predictions using a CSV file, upload a CSV file containing transaction data. An Example file is provided in the repository called `test.csv`.\n\n## Response\n\n- For files, the app will add a new column called `Class` and assign 1 or 0 for each row:\n  - 1 --\u003e Fraudulent\n  - 0 --\u003e Normal\n\n- For inserted data, the response will be either:\n  - \"Potentially Fraudulent Activity Detected\"\n  - \"Transaction Appears Normal\"\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouradbaba%2Ffraud_det_app_mlops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouradbaba%2Ffraud_det_app_mlops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouradbaba%2Ffraud_det_app_mlops/lists"}