from fastapi import FastAPI, Request, File, UploadFile from fastapi.responses import JSONResponse from detect import run import uvicorn import os current_directory = os.path.dirname(os.path.abspath(__file__)) app = FastAPI() @app.get("/") async def index(): return {"message": "yolov"} if __name__ == "__main__": uvicorn.run("main:app", host="0.0.0.0", port=9090, reload=True)