Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,11 +21,12 @@ from fastapi.staticfiles import StaticFiles
|
|
21 |
|
22 |
# ...
|
23 |
# Mount a directory to serve static files (e.g., CSS and JavaScript)
|
24 |
-
|
25 |
|
26 |
import logging
|
27 |
|
28 |
app = FastAPI()
|
|
|
29 |
templates = Jinja2Templates(directory="templates")
|
30 |
files = {}
|
31 |
# Configure logging
|
|
|
21 |
|
22 |
# ...
|
23 |
# Mount a directory to serve static files (e.g., CSS and JavaScript)
|
24 |
+
|
25 |
|
26 |
import logging
|
27 |
|
28 |
app = FastAPI()
|
29 |
+
app.mount("/static", StaticFiles(directory="static"), name="static")
|
30 |
templates = Jinja2Templates(directory="templates")
|
31 |
files = {}
|
32 |
# Configure logging
|