Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
557 |
|
558 |
# Connect components to the chat app logic
|
559 |
-
submit_button.click(chat_app_logic, inputs=[message, history
|
560 |
-
message.submit(chat_app_logic, inputs=[
|
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 |
|