acecalisto3 commited on
Commit
fc031ca
·
verified ·
1 Parent(s): 47bd45e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -329,16 +329,6 @@ def main():
329
  # Chat App Logic Tab
330
  with gr.Tab("Chat App"):
331
  history = gr.State([])
332
- for example in examples:
333
- gr.Button(example[0]).click(lambda event, x=example[0]: chat_app_logic, inputs=[x, message, purpose], outputs=chatbot)
334
-
335
- # Connect components to the chat app logic
336
- submit_button.click(lambda event, x=message, h=history: chat_app_logic, inputs=[x, h], outputs=chatbot)
337
- message.submit(lambda event, x=message, h=history: chat_app_logic, inputs=[x, h], outputs=chatbot)
338
- # Connect components to the project explorer
339
- explore_button.click(project_explorer, inputs=[project_path], outputs=project_output)
340
-
341
- demo.launch(show_api=True)
342
-
343
- if __name__ == "__main__":
344
- main()
 
329
  # Chat App Logic Tab
330
  with gr.Tab("Chat App"):
331
  history = gr.State([])
332
+ examples = [
333
+ ["What is the purpose of this AI agent?", "I am designed to assist with no-code development tasks."],
334
+ ["Can you help me generate a Python function to calculate the factorial of a number?", "