style: docker support gradio print

This commit is contained in:
ZeYi Lin 2024-09-07 02:31:49 +08:00
parent c95bcce48b
commit a8e84d6d3d
2 changed files with 3 additions and 2 deletions

View File

@ -31,5 +31,6 @@ RUN echo "==> Clean up..." && \
# 指定工作目录
EXPOSE 7860
EXPOSE 8080
CMD [ "python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]
CMD [ "python3", "-u", "app.py", "--host", "0.0.0.0", "--port", "7860"]

2
app.py
View File

@ -643,4 +643,4 @@ if __name__ == "__main__":
show_api=False,
favicon_path=os.path.join(root_dir, "assets/hivision_logo.png"),
root_path=args.root_path,
)
)