pip install lightning[app]
In order to run the application locally, run the following commands
pip install -r requirements.txt
lightning run app app.py
In order to run the application cloud, run the following commands
lightning run app app.py --cloud
USE_GPU=1 lightning run app app.py --cloud
Using Lightning HPO, you can easily convert the training component into a Sweep Component.
pip install lightning-hpo
lightning run app app_hpo.py
The components are here and the code is heavily commented.
Once you understand well this example, you aren't a beginner with Lightning App anymore 🔥