Spaces:
Sleeping
Sleeping
Commit ·
fe14e96
1
Parent(s): eb2ecbe
feat : add import staticfiles
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from fastapi import FastAPI, Request, Response, Form, Header, HTTPException, BackgroundTasks
|
| 2 |
from fastapi.responses import JSONResponse
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware # 匯入 FastAPI 的 CORS 中介軟體
|
|
|
|
| 4 |
|
| 5 |
from typing import Annotated # 推薦用於 Pydantic v2+
|
| 6 |
import pandas as pd
|
|
|
|
| 1 |
from fastapi import FastAPI, Request, Response, Form, Header, HTTPException, BackgroundTasks
|
| 2 |
from fastapi.responses import JSONResponse
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware # 匯入 FastAPI 的 CORS 中介軟體
|
| 4 |
+
from fastapi.staticfiles import StaticFiles
|
| 5 |
|
| 6 |
from typing import Annotated # 推薦用於 Pydantic v2+
|
| 7 |
import pandas as pd
|