Remove unused import of StaticFiles from FastAPI in app.py
Browse files- api/fastapi_server.py +2 -2
- app.py +0 -1
api/fastapi_server.py
CHANGED
@@ -59,8 +59,8 @@ URLS = [
|
|
59 |
# Initialize the FastAPI app
|
60 |
app = FastAPI(title="Status Law Assistant API")
|
61 |
|
62 |
-
#
|
63 |
-
app.mount("/static", StaticFiles(directory="static"), name="static")
|
64 |
|
65 |
# Web interface route
|
66 |
@app.get("/web", response_class=HTMLResponse)
|
|
|
59 |
# Initialize the FastAPI app
|
60 |
app = FastAPI(title="Status Law Assistant API")
|
61 |
|
62 |
+
# Remove the static files mounting since we don't need it
|
63 |
+
# app.mount("/static", StaticFiles(directory="static"), name="static")
|
64 |
|
65 |
# Web interface route
|
66 |
@app.get("/web", response_class=HTMLResponse)
|
app.py
CHANGED
@@ -7,7 +7,6 @@ import uvicorn
|
|
7 |
import requests
|
8 |
from fastapi import FastAPI
|
9 |
from fastapi.responses import HTMLResponse
|
10 |
-
from fastapi.staticfiles import StaticFiles
|
11 |
|
12 |
# Add project root to Python path
|
13 |
current_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
7 |
import requests
|
8 |
from fastapi import FastAPI
|
9 |
from fastapi.responses import HTMLResponse
|
|
|
10 |
|
11 |
# Add project root to Python path
|
12 |
current_dir = os.path.abspath(os.path.dirname(__file__))
|