Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) | |
app = FastAPI() | |
async def root_test(): | |
logger.info("Root endpoint/ akses") | |
return{"message": "Hello hf"} | |
async def test_endpoint(): | |
logger.info("berhasil akses endpont /test-hf") | |
return {"message": "Test endpoint workk!"} |