This commit is contained in:
w_xiaolizu
2023-04-24 10:45:36 +08:00
parent f764b76694
commit 859e3c0b9d
4 changed files with 18 additions and 3 deletions

8
.gitignore vendored
View File

@ -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/

View File

@ -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():

View File

@ -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

View File

@ -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