diff --git a/.gitignore b/.gitignore index 76a9c2b..44cf959 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ + + + diff --git a/__main__.py b/__main__.py index 5a626c6..c29cd1a 100644 --- a/__main__.py +++ b/__main__.py @@ -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(): diff --git a/auto_functional.py b/auto_functional.py index 331aff9..c048d76 100644 --- a/auto_functional.py +++ b/auto_functional.py @@ -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 \ No newline at end of file diff --git a/toolbox.py b/toolbox.py index 22570b8..1ee2be2 100644 --- a/toolbox.py +++ b/toolbox.py @@ -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