Skip to content

Commit f18d165

Browse files
feat: update webui (#161)
1 parent b1bd447 commit f18d165

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ For any questions, please check [FAQ](https://github.com/open-sciencelab/GraphGe
163163
```bash
164164
python -m webui.app
165165
```
166-
167-
For hot-reload during development, run
168-
```bash
169-
PYTHONPATH=. gradio webui/app.py
170-
```
171166

172167

173168
![ui](https://github.com/user-attachments/assets/3024e9bc-5d45-45f8-a4e6-b57bd2350d84)

README_zh.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ GraphGen 首先根据源文本构建细粒度的知识图谱,然后利用期
161161
```bash
162162
python -m webui.app
163163
```
164-
165-
如果在开发过程中需要热重载,请运行
166-
167-
```bash
168-
PYTHONPATH=. gradio webui/app.py
169-
```
170164

171165

172166
![ui](https://github.com/user-attachments/assets/3024e9bc-5d45-45f8-a4e6-b57bd2350d84)

webui/app.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,15 @@ def toggle_partition_params(method):
516516
with gr.Accordion(label=_("Generation Config"), open=False):
517517
gr.Markdown(value=_("Generation Config Info"))
518518
mode = gr.Radio(
519-
choices=["atomic", "multi_hop", "aggregated", "CoT"],
519+
choices=[
520+
"atomic",
521+
"multi_hop",
522+
"aggregated",
523+
"CoT",
524+
"multi_choice",
525+
"multi_answer",
526+
"fill_in_blank",
527+
],
520528
label=_("Mode"),
521529
value="aggregated",
522530
interactive=True,

0 commit comments

Comments
 (0)