Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
app = FastAPI() # ✅ This line is critical
|
| 2 |
|
| 3 |
model = SentenceTransformer("BAAI/bge-small-zh")
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
from pydantic import BaseModel
|
| 3 |
+
from sentence_transformers import SentenceTransformer
|
| 4 |
+
|
| 5 |
app = FastAPI() # ✅ This line is critical
|
| 6 |
|
| 7 |
model = SentenceTransformer("BAAI/bge-small-zh")
|