Spaces:
Running
Running
rajeshchoudharyt
commited on
Commit
•
4a77268
1
Parent(s):
de5de97
update python package
Browse files- Dockerfile +1 -1
- README.md +13 -0
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
# Copy the current directory contents into the container at .
|
4 |
COPY . .
|
|
|
1 |
+
FROM python:3.10.13
|
2 |
|
3 |
# Copy the current directory contents into the container at .
|
4 |
COPY . .
|
README.md
CHANGED
@@ -9,3 +9,16 @@ license: mit
|
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
12 |
+
|
13 |
+
Endpoint: /api/embeddings
|
14 |
+
|
15 |
+
Headers:
|
16 |
+
Authorization: Bearer <token>
|
17 |
+
Body:
|
18 |
+
|
19 |
+
```bash
|
20 |
+
{
|
21 |
+
"input": [ "Hello", "World" ],
|
22 |
+
"embedding_type": "s2s_query" or "s2p_query" //optional
|
23 |
+
}
|
24 |
+
```
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
python==3.
|
2 |
fastapi==0.108.0
|
3 |
uvicorn
|
4 |
pydantic
|
|
|
1 |
+
python==3.10.13
|
2 |
fastapi==0.108.0
|
3 |
uvicorn
|
4 |
pydantic
|