`app` is not defined and this looks like leftover code. In general, `utils.py` should not be run standalone.
Attach a file by drag & drop or click to upload