From a8e84d6d3d331a647c6585a7c8e82177ab970852 Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Sat, 7 Sep 2024 02:31:49 +0800 Subject: [PATCH] style: docker support gradio print --- Dockerfile | 3 ++- app.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index db8c4d29..ca8cd632 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,5 +31,6 @@ RUN echo "==> Clean up..." && \ # 指定工作目录 EXPOSE 7860 +EXPOSE 8080 -CMD [ "python3", "app.py", "--host", "0.0.0.0", "--port", "7860"] \ No newline at end of file +CMD [ "python3", "-u", "app.py", "--host", "0.0.0.0", "--port", "7860"] \ No newline at end of file diff --git a/app.py b/app.py index 316ff656..b2ed4abf 100644 --- a/app.py +++ b/app.py @@ -643,4 +643,4 @@ def change_image_kb(image_kb_option): show_api=False, favicon_path=os.path.join(root_dir, "assets/hivision_logo.png"), root_path=args.root_path, - ) \ No newline at end of file + )