Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,26 +72,13 @@ def echo(message, history):
|
|
72 |
|
73 |
custom_desc_chat = "<span style='font-size: 16px; color: rgb(243, 239, 224);'>Green Greta ChatBot está aquí para responder todas tus preguntas y ayudarte a tomar decisiones más informadas sobre tu reciclaje.</span>"
|
74 |
|
75 |
-
custom_examples = ["Hola, ¿cuál es tu nombre?", "¿Qué puedo hacer con ropa que ya no uso?", "¿Qué recursos educativos existen para aprender mas sobre sostenibilidad?"]
|
76 |
-
|
77 |
-
custom_examples_css = [
|
78 |
-
"color: #4e6339;",
|
79 |
-
"color: #4e6339;",
|
80 |
-
"color: #4e6339;"
|
81 |
-
]
|
82 |
-
|
83 |
-
example_containers = [
|
84 |
-
gr.Button(custom_examples[i], css=custom_examples_css[i]) for i in range(len(custom_examples))
|
85 |
-
]
|
86 |
-
|
87 |
chatbot_gradio_app = gr.ChatInterface(
|
88 |
fn=echo,
|
89 |
chatbot=gr.Chatbot(height=400),
|
90 |
textbox=gr.Textbox(placeholder="Hazme una pregunta sobre reciclaje...", scale=7),
|
91 |
title=custom_title,
|
92 |
description=custom_desc_chat,
|
93 |
-
examples=
|
94 |
-
theme=theme,
|
95 |
fill_height=True,
|
96 |
submit_btn="Enviar",
|
97 |
retry_btn="Reenviar",
|
|
|
72 |
|
73 |
custom_desc_chat = "<span style='font-size: 16px; color: rgb(243, 239, 224);'>Green Greta ChatBot está aquí para responder todas tus preguntas y ayudarte a tomar decisiones más informadas sobre tu reciclaje.</span>"
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
chatbot_gradio_app = gr.ChatInterface(
|
76 |
fn=echo,
|
77 |
chatbot=gr.Chatbot(height=400),
|
78 |
textbox=gr.Textbox(placeholder="Hazme una pregunta sobre reciclaje...", scale=7),
|
79 |
title=custom_title,
|
80 |
description=custom_desc_chat,
|
81 |
+
examples=["Hola, ¿cuál es tu nombre?", "¿Qué puedo hacer con ropa que ya no uso?", "¿Qué recursos educativos existen para aprender mas sobre sostenibilidad?"],
|
|
|
82 |
fill_height=True,
|
83 |
submit_btn="Enviar",
|
84 |
retry_btn="Reenviar",
|