Spaces:
Sleeping
Sleeping
File size: 395 Bytes
ffd2f51 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from fastapi import FastAPI
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
app = FastAPI()
@app.get("/")
async def root_test():
logger.info("Root endpoint/ akses")
return{"message": "Hello hf"}
@app.get("/test-hf")
async def test_endpoint():
logger.info("berhasil akses endpont /test-hf")
return {"message": "Test endpoint workk!"} |