Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
liuzx d180f7d847 | 4 months ago | |
---|---|---|
image | 5 months ago | |
pcmind_7B_example | 4 months ago | |
stable_diffusion_example | 4 months ago | |
.openi-aitemplate | 4 months ago | |
README.md | 4 months ago |
使用在线推理提供webui或api服务时需要了解以下几点:
平台没有对外直接提供端口如:7860 对外提供服务,可以使用fastapi转发到对外暴露的指定的URL(环境变量可获取:os.getenv('OPENI_SELF_URL'))提供服务。
webui服务参考:
app = gr.mount_gradio_app(app, block, path=os.getenv('OPENI_SELF_URL'))
api服务参考:
base_url = os.getenv('OPENI_SELF_URL')
@app.post(os.path.join(base_url,"text2image"))
服务启动指令参考:
uvicorn.run(app, host='0.0.0.0', port=int(os.getenv('OPENI_SELF_PORT')))
在线推理任务只有在任务终止状态下才有日志返回。
本项目存放了利用启智云脑完成在线推理任务,旨在为AI开发者提供云脑在线推理任务的示例。
Python
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》