message
Browse files- __pycache__/main.cpython-313.pyc +0 -0
- main.py +2 -1
- requirements.txt +1 -1
__pycache__/main.cpython-313.pyc
ADDED
|
Binary file (3.89 kB). View file
|
|
|
main.py
CHANGED
|
@@ -8,7 +8,8 @@ app = FastAPI()
|
|
| 8 |
|
| 9 |
# Load the pre-trained SentenceTransformer model from Hugging Face
|
| 10 |
#model = SentenceTransformer("//huggingface.co/spaces/Kabila22/Kabilan_embedding_1", trust_remote_code=True)
|
| 11 |
-
model = SentenceTransformer("Alibaba-NLP/gte-base-en-v1.5"
|
|
|
|
| 12 |
|
| 13 |
# Define the request body schema
|
| 14 |
class TextInput(BaseModel):
|
|
|
|
| 8 |
|
| 9 |
# Load the pre-trained SentenceTransformer model from Hugging Face
|
| 10 |
#model = SentenceTransformer("//huggingface.co/spaces/Kabila22/Kabilan_embedding_1", trust_remote_code=True)
|
| 11 |
+
model = SentenceTransformer("Alibaba-NLP/gte-base-en-v1.5")
|
| 12 |
+
|
| 13 |
|
| 14 |
# Define the request body schema
|
| 15 |
class TextInput(BaseModel):
|
requirements.txt
CHANGED
|
@@ -7,7 +7,7 @@ pydantic_core==2.27.2
|
|
| 7 |
sniffio==1.3.1
|
| 8 |
starlette==0.45.3
|
| 9 |
typing_extensions==4.12.2
|
| 10 |
-
sentence-transformers
|
| 11 |
scikit-learn==1.3.2
|
| 12 |
numpy==1.26.4
|
| 13 |
pandas==2.1.4
|
|
|
|
| 7 |
sniffio==1.3.1
|
| 8 |
starlette==0.45.3
|
| 9 |
typing_extensions==4.12.2
|
| 10 |
+
sentence-transformers>=2.2.2,<3.0
|
| 11 |
scikit-learn==1.3.2
|
| 12 |
numpy==1.26.4
|
| 13 |
pandas==2.1.4
|