Spaces:
Sleeping
Sleeping
Update ping.py
Browse filesadded @app .head("/ping")
ping.py
CHANGED
|
@@ -6,6 +6,7 @@ def add_ping_route(app: FastAPI, call_langflow):
|
|
| 6 |
Calls the provided call_langflow function with a test message to verify it's working.
|
| 7 |
"""
|
| 8 |
@app.get("/ping")
|
|
|
|
| 9 |
def ping():
|
| 10 |
"""Simple health check that also calls the chat function."""
|
| 11 |
try:
|
|
|
|
| 6 |
Calls the provided call_langflow function with a test message to verify it's working.
|
| 7 |
"""
|
| 8 |
@app.get("/ping")
|
| 9 |
+
@app.head("/ping")
|
| 10 |
def ping():
|
| 11 |
"""Simple health check that also calls the chat function."""
|
| 12 |
try:
|