acecalisto3 commited on
Commit
083e350
·
verified ·
1 Parent(s): 4357311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -553,14 +553,13 @@ def main():
553
  with gr.Tab("Chat App"):
554
  history = gr.State([])
555
  for example in examples:
556
- gr.Button(value=example[0]).click(lambda: chat_app_logic(example[0], history, purpose, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty), outputs=chatbot)
557
 
558
  # Connect components to the chat app logic
559
- submit_button.click(chat_app_logic, inputs=[message, history, purpose, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty], outputs=chatbot)
560
- message.submit(chat_app_logic, inputs=[message, history, purpose, agent_name, sys_prompt, temperature, max_new_tokens, top_p, repetition_penalty], outputs=chatbot)
561
-
562
  # Connect components to the project explorer
563
- explore_button.click(project_explorer, inputs=project_path, outputs=project_output)
564
 
565
  demo.launch(show_api=True)
566
 
 
553
  with gr.Tab("Chat App"):
554
  history = gr.State([])
555
  for example in examples:
556
+ gr.Button(value=example[0]).click(lambda: chat_app_logic(example[0], history, purpose), outputs=chatbot)
557
 
558
  # Connect components to the chat app logic
559
+ submit_button.click(chat_app_logic, inputs=[message, history], outputs=chatbot)
560
+ message.submit(chat_app_logic, inputs=[ history, message), outputs=chatbot)
 
561
  # Connect components to the project explorer
562
+ explore_button.click(project_explorer, inputs=[project_path], outputs=project_output)
563
 
564
  demo.launch(show_api=True)
565