update
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@ -145,4 +145,10 @@ cradle*
|
||||
debug*
|
||||
private*
|
||||
crazy_functions/test_project/pdf_and_word
|
||||
crazy_functions/test_samples
|
||||
crazy_fun
|
||||
ctions/test_samples
|
||||
# auto
|
||||
autogpt/
|
||||
|
||||
|
||||
|
||||
|
||||
@ -144,7 +144,7 @@ class ChatBot(ChatBotFrame):
|
||||
with gr.Row():
|
||||
self.user_input = gr.Textbox(lines=5, show_label=False, placeholder="Describe your AI's role.").style(container=False)
|
||||
with gr.Row():
|
||||
self.goal_list = gr.Dataframe(label='Adding goals', headers=['Goals'], interactive=True,
|
||||
self.goal_list = gr.Dataframe(headers=['Goals'], interactive=True,
|
||||
row_count=4, col_count=(1, 'fixed'), type='array')
|
||||
self.goal_list.style()
|
||||
with gr.Row():
|
||||
|
||||
@ -4,3 +4,12 @@
|
||||
# @Author : Spike
|
||||
# @Descr :
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def chat_with_ai(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt):
|
||||
|
||||
history = []
|
||||
|
||||
pass
|
||||
@ -55,7 +55,7 @@ def ArgsGeneralWrapper(f):
|
||||
txt_passon = txt
|
||||
if 'input加密' in models: txt_passon = func_box.encryption_str(txt)
|
||||
if txt_passon == '' and len(args) > 1:
|
||||
msgs = '### Warning 输入框为空\n' \
|
||||
msgs = f'### {args[1]} Warning 输入框为空\n' \
|
||||
'tips: 使用基础功能时,请在输入栏内输入需要处理的文本内容'
|
||||
yield from update_ui(chatbot=chatbot_with_cookie, history=history, msg=msgs) # 刷新界面
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user