We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5920c commit 8f183e8Copy full SHA for 8f183e8
app.py
@@ -16,6 +16,10 @@
16
# Initialize the Hugging Face tokenizer using the same model name
17
tokenizer = AutoTokenizer.from_pretrained(model_name)
18
19
+@app.route('/health', methods=['GET'])
20
+def health():
21
+ return jsonify({"status": "ok"}), 200
22
+
23
@app.route('/embed', methods=['POST'])
24
def embed_text():
25
data = request.json
0 commit comments