geqintan commited on
Commit
8f9207e
·
1 Parent(s): ad9b013
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ class EmbeddingRequest(BaseModel):
32
  input: str = Field(..., min_length=1, max_length=1000)
33
 
34
  @app.post("/embeddings")
35
- # async def embeddings(request: EmbeddingRequest, authorization: str = Depends(check_authorization)):
36
- async def embeddings(request: EmbeddingRequest):
37
  input_text = request.input
38
 
39
  try:
 
32
  input: str = Field(..., min_length=1, max_length=1000)
33
 
34
  @app.post("/embeddings")
35
+ async def embeddings(request: EmbeddingRequest, authorization: str = Depends(check_authorization)):
36
+ # async def embeddings(request: EmbeddingRequest):
37
  input_text = request.input
38
 
39
  try: