Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
4064938
1
Parent(s):
61ffdef
可以搜索prompt dropdown试试
Browse files- ChuanhuChatbot.py +0 -3
- modules/utils.py +1 -1
ChuanhuChatbot.py
CHANGED
@@ -128,9 +128,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
128 |
get_template_names(plain=True)[0], mode=1
|
129 |
),
|
130 |
multiselect=False,
|
131 |
-
value=load_template(
|
132 |
-
get_template_names(plain=True)[0], mode=1
|
133 |
-
)[0],
|
134 |
).style(container=False)
|
135 |
|
136 |
with gr.Tab(label="保存/加载"):
|
|
|
128 |
get_template_names(plain=True)[0], mode=1
|
129 |
),
|
130 |
multiselect=False,
|
|
|
|
|
|
|
131 |
).style(container=False)
|
132 |
|
133 |
with gr.Tab(label="保存/加载"):
|
modules/utils.py
CHANGED
@@ -301,7 +301,7 @@ def load_template(filename, mode=0):
|
|
301 |
else:
|
302 |
choices = sorted_by_pinyin([row[0] for row in lines])
|
303 |
return {row[0]: row[1] for row in lines}, gr.Dropdown.update(
|
304 |
-
choices=choices
|
305 |
)
|
306 |
|
307 |
|
|
|
301 |
else:
|
302 |
choices = sorted_by_pinyin([row[0] for row in lines])
|
303 |
return {row[0]: row[1] for row in lines}, gr.Dropdown.update(
|
304 |
+
choices=choices
|
305 |
)
|
306 |
|
307 |
|