Spaces:
Running
Running
Update app.py
Browse files
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,
|