mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 00:33:57 +03:00
update
This commit is contained in:
parent
88c7768ddb
commit
40efbe41e6
@ -188,6 +188,11 @@ if __name__ == thisFilename or args.colab == True:
|
|||||||
CONFIG = args.c
|
CONFIG = args.c
|
||||||
MODEL = args.m
|
MODEL = args.m
|
||||||
|
|
||||||
|
if os.getenv("EX_TB_PORT"):
|
||||||
|
EX_TB_PORT = os.environ["EX_TB_PORT"]
|
||||||
|
exApplitionInfo.external_tensorboard_port = int(EX_TB_PORT)
|
||||||
|
|
||||||
|
|
||||||
app_fastapi = FastAPI()
|
app_fastapi = FastAPI()
|
||||||
app_fastapi.router.route_class = ValidationErrorLoggingRoute
|
app_fastapi.router.route_class = ValidationErrorLoggingRoute
|
||||||
app_fastapi.add_middleware(
|
app_fastapi.add_middleware(
|
||||||
@ -397,6 +402,7 @@ if __name__ == thisFilename or args.colab == True:
|
|||||||
|
|
||||||
@app_fastapi.get("/get_ex_application_info")
|
@app_fastapi.get("/get_ex_application_info")
|
||||||
async def get_ex_application_info():
|
async def get_ex_application_info():
|
||||||
|
print(">>>>>>>>>>>>>>",exApplitionInfo)
|
||||||
json_compatible_item_data = jsonable_encoder(exApplitionInfo)
|
json_compatible_item_data = jsonable_encoder(exApplitionInfo)
|
||||||
return JSONResponse(content=json_compatible_item_data)
|
return JSONResponse(content=json_compatible_item_data)
|
||||||
|
|
||||||
@ -429,7 +435,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if os.getenv("EX_TB_PORT"):
|
if os.getenv("EX_TB_PORT"):
|
||||||
EX_TB_PORT = os.environ["EX_TB_PORT"]
|
EX_TB_PORT = os.environ["EX_TB_PORT"]
|
||||||
exApplitionInfo.external_tensorboard_port = int(EX_TB_PORT)
|
|
||||||
printMessage(f"External_TeonsorBord_Port:{EX_TB_PORT}", level=1)
|
printMessage(f"External_TeonsorBord_Port:{EX_TB_PORT}", level=1)
|
||||||
|
|
||||||
if os.getenv("EX_IP"):
|
if os.getenv("EX_IP"):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM dannadori/voice-changer-internal:20221112_111947 as front
|
FROM dannadori/voice-changer-internal:20221112_114121 as front
|
||||||
FROM debian:bullseye-slim as base
|
FROM debian:bullseye-slim as base
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
Loading…
Reference in New Issue
Block a user