[Docs] [Streamlit App]
To install and run the project, you will need:
- Python 3.11+: Ensure you have Python 3.11 or higher installed. You can download it from python.org.
- uv: Fast Python package installer and resolver. Install it from uv.dev.
- Dependencies: The project requires the Python packages listed in pyproject.toml and locked in uv.lock.
The easiest way to get started is using the provided Makefile:
# Install dependencies
make install
# Run the Streamlit app
make run-app
# Run the main script
make run-script-
Clone the Repository from terminal:
git clone https://github.com/mentorchains/BI-ML_Disease-Prediction_2024.git cd BI-ML_Disease-Prediction_2024 -
Install Dependencies using uv:
# Install production dependencies make install # Or install with development tools make install-dev
-
Go to Open Target Platform and obtain the disease
EFO ID. -
Update the configuration in config.py for your experiment. If you choose BigQuery as a data source, ensure you set up your
GOOGLE_APPLICATION_CREDENTIALSand follow the steps to obtain the necessary JSON key files. -
From the project root, run the script:
# Using Makefile (recommended) make run-script # Or using uv directly uv run python src/main.py
-
Run the following command from the project root:
# Using Makefile (recommended) make run-app # Or using streamlit directly streamlit run streamlit_app.py
To run the app using Docker, follow these steps:
-
Build and run the Docker container:
# Using Makefile (recommended) make run-app-docker # Or manually docker build -t gdap . docker run -p 8501:8501 gdap
# Installation
make install
make install-dev
# Development
make fix
make test
make lint
make format
# Running Applications
make run-script
make run-app
# Docker
make run-app-docker
make run-app-docker-dev
# Cleanup
make clean
make clean-docker
make clean-docker-all
# Help
make helpThe directory structure below shows the nature of files/directories used in this repo.
GDAP/
├── streamlit_app.py <- Main Streamlit entry point for deployment
├── requirements.txt <- Dependencies for Streamlit Cloud
├── app/ <- Streamlit applications
├── src/ <- Source code
│ ├── gdap/ <- Main package
│ ├── config.py <- Configuration
│ └── main.py <- Main script
├── data/ <- Data files
├── docs/ <- Documentation
├── notebook/ <- Jupyter notebooks
├── tests/ <- Test files
├── pyproject.toml <- Project config
└── Makefile <- Build commands
Provide references of repositories, articles, other work used by your teams.
[DO NOT REMOVE]
Template repo derived from: http://drivendata.github.io/cookiecutter-data-science
Template created by: @samuelbharti
