This is a web app that run in integration with this repo
as the model that I have used for detection has its code in it.
- This is
Flask app
. - Its
Docker Image
is available as well.
then run following commands.
STEP 1
- Creating virtual enviroment
To do so:-
pip install virtualenv
virtualenv btd
.\btd\Scripts\activate
STEP 2
- Cloning the project locally
git clone https://github.com/SohamRatnaparkhi/BTD_Web.git
cd BTD_Web
STEP 3
- Installing all dependancies
pip install -r requirements.txt
STEP 4
- Running the flask app!
flask run
- Setup Docker
- Setup Docker CLI
- Then run the following commands
docker pull sohamkr/brain-tumor-detector
- After the image is successfully pulled, then enter following command:
docker run -p 8000:5000 sohamkr/brain-tumor-detector
In the web-browser type localhost:8000
to view the app.
If some errors occur, feel free to comment in discussions
section or raise an issue
.
Anyways, you can always refer to official Docker Documentation.
- There are chances that the models (
model_1.h5
ormodel_2.h5
) may not get downloaded (pulled) due to somelfs error
. In such a case, you will need to download the models from this link - There are chances that while running app locally on Windows, the app might give errors (
OS ERROR
). In such a case, please replace/
with\
or vice-versa for the respective error. - In any other case, raise an issue.
---------- THANK YOU -----------