This commit is contained in:
hailin 2025-07-08 19:16:17 +08:00
parent 22d059e137
commit db4243d67d
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ COPY --from=builder /install /usr/local
COPY --from=builder /build/gradio_ui.py /app/gradio_ui.py
WORKDIR /app
EXPOSE 7900
EXPOSE 7900 7901
# 可选:彻底关闭 pip 缓存,避免 runtime 再次安装时产生垃圾
ENV PIP_NO_CACHE_DIR=1

View File

@ -37,5 +37,5 @@ docker build -t "$IMAGE_NAME" .
# ======== 5. 运行容器 ========
echo "🚀 启动容器:$CONTAINER_NAME"
docker run --rm -p 7900:7900 --name "$CONTAINER_NAME" "$IMAGE_NAME"
docker run --rm -p 7900:7900 -p 7901:7901--name "$CONTAINER_NAME" "$IMAGE_NAME"

View File

@ -67,7 +67,7 @@ def run_eval(
full_output += "[Eval Finished]\n"
if "Evaluation Report" in output_choices:
vis_port = 7861
vis_port = 7901
outputs_root = "./outputs"
try:
latest_output = max(
@ -193,7 +193,7 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
with gr.Column(visible=False) as api_fields:
api_url_input = gr.Textbox(
label="API 地址",
placeholder="https://api.example.com/v1/chat"
placeholder="https://ai.aiszaiai.com/v1/chat/completions"
)
api_token_input = gr.Textbox(
label="Token 密钥",