Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -21,7 +21,8 @@ from fastapi import Request
|
|
| 21 |
from pathlib import Path
|
| 22 |
# Initialize FastAPI app
|
| 23 |
app = FastAPI()
|
| 24 |
-
|
|
|
|
| 25 |
# Configure CORS
|
| 26 |
app.add_middleware(
|
| 27 |
CORSMiddleware,
|
|
|
|
| 21 |
from pathlib import Path
|
| 22 |
# Initialize FastAPI app
|
| 23 |
app = FastAPI()
|
| 24 |
+
print(os.getcwd())
|
| 25 |
+
templates = Jinja2Templates(directory=str(Path(__file__).parent / "templates"))
|
| 26 |
# Configure CORS
|
| 27 |
app.add_middleware(
|
| 28 |
CORSMiddleware,
|