Skip to content

Commit

Permalink
file upload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Stankiewicz committed Mar 1, 2021
1 parent 34558fc commit 865bbbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
from pathlib import Path

from flask import Flask

Expand All @@ -18,6 +19,10 @@
app.config["CONFIDENCE"] = config.get("default_confidence", 0.90)
app.register_blueprint(detector_blueprint)

# Creating upload folder in case it doesn't exist
Path(app.config["UPLOAD_FOLDER"]).mkdir(exist_ok=True)

# Preloading model
get_detector()

if __name__ == "__main__":
Expand Down
Empty file added static/.empty
Empty file.

0 comments on commit 865bbbe

Please sign in to comment.