Update app.py

creates error if try to download results before simulation done