geqintan commited on
Commit
4c2fffc
·
1 Parent(s): 496390f
Files changed (1) hide show
  1. app.py +1 -1
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: