add setting port

This commit is contained in:
lan-air
2022-12-12 15:15:17 +08:00
parent 9cf0d9418d
commit fb80d26b70
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -207,4 +207,4 @@ async def share(text: str = Form(default=None), style: str = Form(default='2'),
if __name__ == '__main__':
import uvicorn
uvicorn.run('main:app', host='0.0.0.0', port=12345)
uvicorn.run('main:app', host='0.0.0.0', port=settings.PORT, debug=settings.DEBUG)