Spaces:
Running
Running
Commit
·
b3e42d1
1
Parent(s):
f4ba8ea
fix
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from typing import List
|
|
| 6 |
import torch
|
| 7 |
from functools import lru_cache
|
| 8 |
import logging
|
|
|
|
| 9 |
|
| 10 |
# 🔧 Configure logging
|
| 11 |
logging.basicConfig(level=logging.INFO)
|
|
@@ -96,4 +97,5 @@ async def get_embedding(input: TextInput):
|
|
| 96 |
|
| 97 |
@app.get("/status")
|
| 98 |
async def status():
|
|
|
|
| 99 |
return {"status": "Server is up and running"}
|
|
|
|
| 6 |
import torch
|
| 7 |
from functools import lru_cache
|
| 8 |
import logging
|
| 9 |
+
from datetime import datetime
|
| 10 |
|
| 11 |
# 🔧 Configure logging
|
| 12 |
logging.basicConfig(level=logging.INFO)
|
|
|
|
| 97 |
|
| 98 |
@app.get("/status")
|
| 99 |
async def status():
|
| 100 |
+
logger.info(f"Status API: Server is up and running at {datetime.now()}")
|
| 101 |
return {"status": "Server is up and running"}
|