对话记录以及Prompt,试用Accordion容器控制
This commit is contained in:
@ -132,8 +132,9 @@ class ChatBot(ChatBotFrame):
|
|||||||
container=False)
|
container=False)
|
||||||
self.pro_entry_btn = gr.Button("搜索", variant="primary").style(full_width=False, size="sm")
|
self.pro_entry_btn = gr.Button("搜索", variant="primary").style(full_width=False, size="sm")
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
with gr.Accordion(label='Prompt usage frequency'):
|
||||||
self.pro_prompt_list = gr.Dataset(components=[gr.HTML(visible=False)], samples_per_page=10,
|
self.pro_prompt_list = gr.Dataset(components=[gr.HTML(visible=False)], samples_per_page=10,
|
||||||
label="Prompt usage frequency",
|
label='Results',
|
||||||
samples=[[". . ."] for i in range(20)], type='index')
|
samples=[[". . ."] for i in range(20)], type='index')
|
||||||
self.pro_prompt_state = gr.State(self.pro_prompt_list)
|
self.pro_prompt_state = gr.State(self.pro_prompt_list)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user