- .gitignore +1 -0
- app.py +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
venv/
|
app.py
CHANGED
@@ -8,10 +8,13 @@ from PIL import Image
|
|
8 |
import numpy as np
|
9 |
import cv2
|
10 |
import io
|
|
|
11 |
|
12 |
app = FastAPI()
|
13 |
|
14 |
# Mount a static directory for serving images
|
|
|
|
|
15 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
16 |
|
17 |
# Templates for rendering HTML
|
|
|
8 |
import numpy as np
|
9 |
import cv2
|
10 |
import io
|
11 |
+
import os
|
12 |
|
13 |
app = FastAPI()
|
14 |
|
15 |
# Mount a static directory for serving images
|
16 |
+
folder = os.path.join(os.getcwd(), "static")
|
17 |
+
os.makedirs(folder)
|
18 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
19 |
|
20 |
# Templates for rendering HTML
|