From 31e4748f11434f906e68367305b8bcb1facf5736 Mon Sep 17 00:00:00 2001 From: chenzihong-gavin Date: Fri, 16 Jan 2026 11:18:14 +0800 Subject: [PATCH] feat: update webui --- README.md | 5 ----- README_zh.md | 6 ------ webui/app.py | 10 +++++++++- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 937d1692..e7447bc2 100644 --- a/README.md +++ b/README.md @@ -163,11 +163,6 @@ For any questions, please check [FAQ](https://github.com/open-sciencelab/GraphGe ```bash python -m webui.app ``` - - For hot-reload during development, run - ```bash - PYTHONPATH=. gradio webui/app.py - ``` ![ui](https://github.com/user-attachments/assets/3024e9bc-5d45-45f8-a4e6-b57bd2350d84) diff --git a/README_zh.md b/README_zh.md index 7f6e1d3f..a36755ec 100644 --- a/README_zh.md +++ b/README_zh.md @@ -161,12 +161,6 @@ GraphGen 首先根据源文本构建细粒度的知识图谱,然后利用期 ```bash python -m webui.app ``` - - 如果在开发过程中需要热重载,请运行 - - ```bash - PYTHONPATH=. gradio webui/app.py - ``` ![ui](https://github.com/user-attachments/assets/3024e9bc-5d45-45f8-a4e6-b57bd2350d84) diff --git a/webui/app.py b/webui/app.py index 695e1b87..b75d161b 100644 --- a/webui/app.py +++ b/webui/app.py @@ -516,7 +516,15 @@ def toggle_partition_params(method): with gr.Accordion(label=_("Generation Config"), open=False): gr.Markdown(value=_("Generation Config Info")) mode = gr.Radio( - choices=["atomic", "multi_hop", "aggregated", "CoT"], + choices=[ + "atomic", + "multi_hop", + "aggregated", + "CoT", + "multi_choice", + "multi_answer", + "fill_in_blank", + ], label=_("Mode"), value="aggregated", interactive=True,