You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
385 B
Python
13 lines
385 B
Python
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)
|