Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2830,6 +2830,15 @@ def generate_veterinary_welcome_message(phone_number, user_context):
|
|
2830 |
"Please reply with a number (1-4) or type your question."
|
2831 |
)
|
2832 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2833 |
if __name__ == "__main__":
|
2834 |
# Launch FastAPI app
|
2835 |
import uvicorn
|
|
|
2830 |
"Please reply with a number (1-4) or type your question."
|
2831 |
)
|
2832 |
|
2833 |
+
@app.get("/test-whatsjet")
|
2834 |
+
async def test_whatsjet():
|
2835 |
+
import requests
|
2836 |
+
try:
|
2837 |
+
resp = requests.get("https://api.whatsjet.com", timeout=5)
|
2838 |
+
return {"status": resp.status_code, "text": resp.text[:200]}
|
2839 |
+
except Exception as e:
|
2840 |
+
return {"error": str(e)}
|
2841 |
+
|
2842 |
if __name__ == "__main__":
|
2843 |
# Launch FastAPI app
|
2844 |
import uvicorn
|