This commit is contained in:
parent
22d059e137
commit
db4243d67d
|
|
@ -51,7 +51,7 @@ COPY --from=builder /install /usr/local
|
||||||
COPY --from=builder /build/gradio_ui.py /app/gradio_ui.py
|
COPY --from=builder /build/gradio_ui.py /app/gradio_ui.py
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 7900
|
EXPOSE 7900 7901
|
||||||
|
|
||||||
# 可选:彻底关闭 pip 缓存,避免 runtime 再次安装时产生垃圾
|
# 可选:彻底关闭 pip 缓存,避免 runtime 再次安装时产生垃圾
|
||||||
ENV PIP_NO_CACHE_DIR=1
|
ENV PIP_NO_CACHE_DIR=1
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,5 @@ docker build -t "$IMAGE_NAME" .
|
||||||
|
|
||||||
# ======== 5. 运行容器 ========
|
# ======== 5. 运行容器 ========
|
||||||
echo "🚀 启动容器:$CONTAINER_NAME"
|
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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ def run_eval(
|
||||||
full_output += "[Eval Finished]\n"
|
full_output += "[Eval Finished]\n"
|
||||||
|
|
||||||
if "Evaluation Report" in output_choices:
|
if "Evaluation Report" in output_choices:
|
||||||
vis_port = 7861
|
vis_port = 7901
|
||||||
outputs_root = "./outputs"
|
outputs_root = "./outputs"
|
||||||
try:
|
try:
|
||||||
latest_output = max(
|
latest_output = max(
|
||||||
|
|
@ -193,7 +193,7 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
|
||||||
with gr.Column(visible=False) as api_fields:
|
with gr.Column(visible=False) as api_fields:
|
||||||
api_url_input = gr.Textbox(
|
api_url_input = gr.Textbox(
|
||||||
label="API 地址",
|
label="API 地址",
|
||||||
placeholder="https://api.example.com/v1/chat"
|
placeholder="https://ai.aiszaiai.com/v1/chat/completions"
|
||||||
)
|
)
|
||||||
api_token_input = gr.Textbox(
|
api_token_input = gr.Textbox(
|
||||||
label="Token 密钥",
|
label="Token 密钥",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue