Ifaldzi commited on
Commit
d5af3db
·
1 Parent(s): b80d55d

feat: add requirements.ext

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +45 -0
app.py CHANGED
@@ -3,7 +3,7 @@ from sentence_transformers import SentenceTransformer
3
 
4
 
5
  app = FastAPI()
6
- model = SentenceTransformer("LazarusNLP/all-indobert-base-v3")
7
 
8
 
9
  @app.post("/embeddings")
 
3
 
4
 
5
  app = FastAPI()
6
+ model = SentenceTransformer("LazarusNLP/all-indobert-base-v3", device="cpu")
7
 
8
 
9
  @app.post("/embeddings")
requirements.txt ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ annotated-types==0.7.0
2
+ anyio==4.8.0
3
+ certifi==2025.1.31
4
+ charset-normalizer==3.4.1
5
+ click==8.1.8
6
+ colorama==0.4.6
7
+ fastapi==0.115.8
8
+ filelock==3.17.0
9
+ fsspec==2025.2.0
10
+ h11==0.14.0
11
+ httptools==0.6.4
12
+ huggingface-hub==0.28.1
13
+ idna==3.10
14
+ Jinja2==3.1.5
15
+ joblib==1.4.2
16
+ MarkupSafe==3.0.2
17
+ mpmath==1.3.0
18
+ networkx==3.4.2
19
+ numpy==2.2.2
20
+ packaging==24.2
21
+ pillow==11.1.0
22
+ pydantic==2.10.6
23
+ pydantic_core==2.27.2
24
+ python-dotenv==1.0.1
25
+ PyYAML==6.0.2
26
+ regex==2024.11.6
27
+ requests==2.32.3
28
+ safetensors==0.5.2
29
+ scikit-learn==1.6.1
30
+ scipy==1.15.1
31
+ sentence-transformers==3.4.1
32
+ setuptools==75.8.0
33
+ sniffio==1.3.1
34
+ starlette==0.45.3
35
+ sympy==1.13.1
36
+ threadpoolctl==3.5.0
37
+ tokenizers==0.21.0
38
+ torch==2.6.0
39
+ tqdm==4.67.1
40
+ transformers==4.48.2
41
+ typing_extensions==4.12.2
42
+ urllib3==2.3.0
43
+ uvicorn==0.34.0
44
+ watchfiles==1.0.4
45
+ websockets==14.2