bugfix: components
Browse files
app.py
CHANGED
@@ -32,12 +32,17 @@ def slow_api_response(message, history, property_id="c0ced2220b87fc23762facf6171
|
|
32 |
yield f"Error: {str(e)}"
|
33 |
|
34 |
property_id_input = gr.Textbox(label="Property ID", placeholder="Ingresa el ID de la propiedad")
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
demo = gr.ChatInterface(fn=slow_api_response,
|
37 |
title="AI Assistant",
|
38 |
additional_inputs=[property_id_input],
|
39 |
description="Esta app simula una conversaci贸n con un asistente virtual que conoce una propiedad.",
|
40 |
-
examples=
|
41 |
).launch()
|
42 |
|
43 |
|
|
|
32 |
yield f"Error: {str(e)}"
|
33 |
|
34 |
property_id_input = gr.Textbox(label="Property ID", placeholder="Ingresa el ID de la propiedad")
|
35 |
+
examples = [
|
36 |
+
["hola", "c0ced2220b87fc23762facf617157a4f"],
|
37 |
+
["me gustaria mas informacion de la casa en venta", "d1ab12345b87fc23762facf617159bcd"],
|
38 |
+
["acepta mascotas?", "e2xy67890b87fc23762facf617151xyz"]
|
39 |
+
]
|
40 |
|
41 |
demo = gr.ChatInterface(fn=slow_api_response,
|
42 |
title="AI Assistant",
|
43 |
additional_inputs=[property_id_input],
|
44 |
description="Esta app simula una conversaci贸n con un asistente virtual que conoce una propiedad.",
|
45 |
+
examples=examples
|
46 |
).launch()
|
47 |
|
48 |
|