Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -89,6 +89,10 @@ def delete_task(task_id):
|
|
| 89 |
def index():
|
| 90 |
return "Task API is running."
|
| 91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
@app.errorhandler(404)
|
| 93 |
def not_found(e):
|
| 94 |
return jsonify({"error": "not found"}), 404
|
|
|
|
| 89 |
def index():
|
| 90 |
return "Task API is running."
|
| 91 |
|
| 92 |
+
@app.route("/ping", methods=["GET"])
|
| 93 |
+
def ping():
|
| 94 |
+
return "pong", 200
|
| 95 |
+
|
| 96 |
@app.errorhandler(404)
|
| 97 |
def not_found(e):
|
| 98 |
return jsonify({"error": "not found"}), 404
|