Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
| 333 |
-
|
| 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?", "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|