yangtb24 commited on
Commit
b34c36b
·
verified ·
1 Parent(s): 6be1fe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -926,6 +926,10 @@ def handsome_embeddings():
926
  f"使用的模型: {model_name}"
927
  )
928
 
 
 
 
 
929
  return jsonify({
930
  "object": "list",
931
  "data": embedding_data,
 
926
  f"使用的模型: {model_name}"
927
  )
928
 
929
+ with data_lock:
930
+ request_timestamps.append(time.time())
931
+ token_counts.append(prompt_tokens)
932
+
933
  return jsonify({
934
  "object": "list",
935
  "data": embedding_data,