Context manager open(file) as f fixes (#7289)

* Flask context manager `open()` fix

* Additional read context manager fixes
This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-04-05 12:54:25 +02:00
1 parent 2181ef371e
commit 5f97001ed4
5 files changed
+17 -6

No files matched your search

+2
View File
@@ -1,6 +1,8 @@
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run a Flask REST API exposing a YOLOv5s model
"""
import argparse
import io