gordonchan commited on
Commit
fd937c6
1 Parent(s): ecc72aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,8 +77,8 @@ async def get_embeddings(request: EmbeddingRequest, credentials: HTTPAuthorizati
77
  )
78
 
79
  print(request.json())
80
- embeddings = query(request.input)
81
- print(embeddings)
82
 
83
  prompt_tokens = sum(len(text.split()) for text in request.input)
84
  total_tokens = sum(num_tokens_from_string(text) for text in request.input)
 
77
  )
78
 
79
  print(request.json())
80
+ embeddings = async_query(request.input)
81
+ # print(embeddings)
82
 
83
  prompt_tokens = sum(len(text.split()) for text in request.input)
84
  total_tokens = sum(num_tokens_from_string(text) for text in request.input)