Spaces:
Sleeping
Sleeping
Commit
•
4df4f45
1
Parent(s):
af65f1d
Update main.py
Browse files
main.py
CHANGED
@@ -10,9 +10,6 @@ app = FastAPI()
|
|
10 |
UPLOAD_DIRECTORY = "uploads"
|
11 |
os.makedirs(UPLOAD_DIRECTORY, exist_ok=True)
|
12 |
|
13 |
-
# Подключаем статические файлы (например, CSS)
|
14 |
-
app.mount("/static", StaticFiles(directory="static"), name="static")
|
15 |
-
|
16 |
# Подключаем шаблоны Jinja2
|
17 |
templates = Jinja2Templates(directory="templates")
|
18 |
|
|
|
10 |
UPLOAD_DIRECTORY = "uploads"
|
11 |
os.makedirs(UPLOAD_DIRECTORY, exist_ok=True)
|
12 |
|
|
|
|
|
|
|
13 |
# Подключаем шаблоны Jinja2
|
14 |
templates = Jinja2Templates(directory="templates")
|
15 |
|