Spaces:
Sleeping
Sleeping
alessandro trinca tornidor
[refactor] porting changes from https://huggingface.co/spaces/aletrn/music-separation
9e6aa30
import json | |
import logging | |
from fastapi import APIRouter | |
from helpers import session_logger | |
router = APIRouter() | |
def health() -> str: | |
try: | |
logging.info("health check") | |
return json.dumps({"msg": "still alive..."}) | |
except Exception as e: | |
logging.error(f"exception:{e}.") | |
return json.dumps({"msg": "request failed"}) | |