1 Star 0 Fork 44

CyberWarrior/Gradio-YOLOv8-Det

forked from CV_Lab/Gradio-YOLOv8-Det 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gyd_fastapi_server.py 566 Bytes
一键复制 编辑 原始数据 按行查看 历史
代码阿尔法 提交于 2023-12-09 17:08 . black format
# Gradio YOLOv8 Det FastAPI Server
# 创建人:曾逸夫
# 创建时间:2023-11-16
# http://localhost:1024/gradio/
import gradio as gr
import uvicorn
from fastapi import FastAPI
from gradio_yolov8_det_v1 import main, parse_args
app = FastAPI()
@app.get("/")
def read_main():
return {"message": "This is your main app"}
args = parse_args()
io = main(args)
app = gr.mount_gradio_app(app, io, path="/gradio")
if __name__ == "__main__":
app_str = "gyd_fastapi_server:app"
uvicorn.run(app_str, host="localhost", port=1024, reload=True, workers=4)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/noble_space/gradio-yolov8-det.git
git@gitee.com:noble_space/gradio-yolov8-det.git
noble_space
gradio-yolov8-det
Gradio-YOLOv8-Det
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385