add setting port

This commit is contained in:
lan-air committed 2022-12-12 15:15:17 +08:00
1 parent 9cf0d9418d
commit fb80d26b70
3 files changed
+5 -3

No files matched your search

+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)