From c8234fb25044fc94667d562a6f00f1f19f8e262c Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Jul 2025 19:11:02 +0800 Subject: [PATCH] . --- email_ui.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/email_ui.py b/email_ui.py index 794e6bc..e809cd4 100644 --- a/email_ui.py +++ b/email_ui.py @@ -86,5 +86,5 @@ with gr.Blocks(css=".gr-button {min-width:6rem}") as demo: send_btn.click(send_emails, state_box, out_html) if __name__ == "__main__": - demo.queue().launch(server_port=7880) + demo.queue().launch(server_port=7880, show_api=False) # ← 关闭 API 元数据 diff --git a/requirements.txt b/requirements.txt index 808366a..e9f2937 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ gradio>=4.0,<5 +pydantic==2.10.6