Skip to content

Commit

Permalink
Merge pull request #226 from Aydinhamedi/main
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
Aydinhamedi authored Mar 19, 2024
2 parents dda68fe + aca2d20 commit 8f855dc
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 128 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/python-app.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/python-app_Alpha-b.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/python-app_Beta-b.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/ruff_L&F-Alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Main
name: Ruff - Alpha

on:
push:
branches: [ "Alpha-b" ]

jobs:
Ruff:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
ruff check . --fix --show-fixes
- name: Format with ruff
run: |
ruff format . --preview --line-length 140
28 changes: 28 additions & 0 deletions .github/workflows/ruff_L&F-Beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Main
name: Ruff - Beta

on:
push:
branches: [ "Beta" ]

jobs:
Ruff:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
ruff check . --fix --show-fixes
- name: Format with ruff
run: |
ruff format . --preview --line-length 140
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Ruff
# Main
name: Ruff - Main

on:
push:
branches: [ "main", "Alpha-b", "Beta-b" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Ruff](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F.yml/badge.svg)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F.yml)
[![CodeQL](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/codeql.yml)
[![Dependency Review](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/dependency-review.yml)\
[![Python Test [main]](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app.yml)
[![Python Test [Beta-b]](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app_Beta-b.yml/badge.svg?branch=Beta-b)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app_Beta-b.yml)\
[![Python Test [Alpha-b]](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app_Alpha-b.yml/badge.svg?branch=Alpha-b)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/python-app_Alpha-b.yml)
[![Ruff - Main](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Main.yml/badge.svg)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Main.yml)
[![Ruff - Beta](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Beta.yml/badge.svg?branch=Beta-b)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Beta.yml)
[![Ruff - Alpha](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Alpha.yml/badge.svg?branch=Alpha-b)](https://github.com/Aydinhamedi/Pneumonia-Detection-Ai/actions/workflows/ruff_L&F-Alpha.yml)

### This project uses a deep learning model built with the TensorFlow Library to detect pneumonia in X-ray images. The model architecture is based on the EfficientNetB7 model, which has achieved an accuracy of approximately 97.12% (97.11538%) on our test data. This high accuracy rate is one of the strengths of our AI model.
> [!IMPORTANT]
Expand Down Expand Up @@ -149,4 +148,4 @@ The model provided in this project should not be used for medical diagnosis with
## License
This project is open-source and is licensed under the MIT License. See the `LICENSE` file for details.
This project is open-source and is licensed under the MIT License. See the `LICENSE` file for details.

0 comments on commit 8f855dc

Please sign in to comment.