update
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ class EmbeddingRequest(BaseModel):
|
|
27 |
input: str = Field(..., min_length=1, max_length=1000)
|
28 |
|
29 |
@app.post("/embeddings")
|
30 |
-
async def embeddings(request: EmbeddingRequest):
|
31 |
input_text = request.input
|
32 |
|
33 |
try:
|
|
|
27 |
input: str = Field(..., min_length=1, max_length=1000)
|
28 |
|
29 |
@app.post("/embeddings")
|
30 |
+
async def embeddings(request: EmbeddingRequest, authorization: str = Depends(check_authorization)):
|
31 |
input_text = request.input
|
32 |
|
33 |
try:
|