Closed nrslt closed 3 years ago
@nrslt also I'm a tiny bit suspicious of that failed test. Could you try to run:
gunicorn --workers 1 -b 0.0.0.0:8050 --chdir ./app main:server
on your branch please? If this fails, we need to fix it
Thanks @frgfm @Akilditu I added a gif of how the app renders.
@frgfm the gunicorn command works on my side, though there is still this docker-gunicorn failed test.. We can discuss it quickly today if you want.
Hi guys,
This PR adds real risk scores data to the web app.
At this point, the data is retrieved in a 'static' way from here 'https://github.com/pyronear/pyro-risks/releases/download/v0.1.0-data/pyrorisk_20200901.json'
Note that 3 departments do not have risk scores, though it won't be a problem for the presentation as they're all located in the Ile de France region.
When I'll have time I'll look for a better way to store the data in a dcc.Store() object while launching the app, then using it to 'populate' the risk map.
Tell me if you have any remark, and thanks @frgfm for the help!
@frgfm @Akilditu