Spaces:
Sleeping
Sleeping
Update model version
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ import logging
|
|
8 |
app = FastAPI()
|
9 |
|
10 |
# Load tokenizer and model
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-small-en-v1")
|
12 |
-
model = AutoModel.from_pretrained("BAAI/bge-small-en-v1")
|
13 |
|
14 |
# Precompute embeddings for labels
|
15 |
labels = ["Mathematics", "Language Arts", "Social Studies", "Science"]
|
|
|
8 |
app = FastAPI()
|
9 |
|
10 |
# Load tokenizer and model
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-small-en-v1.5")
|
12 |
+
model = AutoModel.from_pretrained("BAAI/bge-small-en-v1.5")
|
13 |
|
14 |
# Precompute embeddings for labels
|
15 |
labels = ["Mathematics", "Language Arts", "Social Studies", "Science"]
|