Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,16 @@ examples = [
|
|
107 |
# Crear una interfaz de chat Gradio con el modelo generativo
|
108 |
gr.ChatInterface(
|
109 |
fn=generate,
|
110 |
-
chatbot=gr.Chatbot(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
textbox=gr.Textbox(placeholder="¿Qué parámetros definen la calidad del agua?", container=False, scale=7),
|
112 |
theme="soft",
|
113 |
additional_inputs=additional_inputs,
|
@@ -115,9 +124,9 @@ gr.ChatInterface(
|
|
115 |
description='Autor: <a href=\"https://huggingface.co/Antonio49\">Antonio Fernández</a> de <a href=\"https://saturdays.ai/\">SaturdaysAI</a>. Formación: <a href=\"https://cursos.saturdays.ai/courses/\">Cursos Online AI</a> Aplicación desarrollada con fines docentes',
|
116 |
examples=examples,
|
117 |
cache_examples=True,
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
concurrency_limit=20,
|
123 |
).launch(show_api=False)
|
|
|
107 |
# Crear una interfaz de chat Gradio con el modelo generativo
|
108 |
gr.ChatInterface(
|
109 |
fn=generate,
|
110 |
+
chatbot=gr.Chatbot(
|
111 |
+
avatar_images=["./15f4b2d3-c4f4-4a29-93cd-e47214953bd9.png", "./botm.png"],
|
112 |
+
bubble_full_width=False,
|
113 |
+
show_label=False,
|
114 |
+
show_share_button=False,
|
115 |
+
show_copy_button=True,
|
116 |
+
likeable=True,
|
117 |
+
layout="panel",
|
118 |
+
height=500,
|
119 |
+
),
|
120 |
textbox=gr.Textbox(placeholder="¿Qué parámetros definen la calidad del agua?", container=False, scale=7),
|
121 |
theme="soft",
|
122 |
additional_inputs=additional_inputs,
|
|
|
124 |
description='Autor: <a href=\"https://huggingface.co/Antonio49\">Antonio Fernández</a> de <a href=\"https://saturdays.ai/\">SaturdaysAI</a>. Formación: <a href=\"https://cursos.saturdays.ai/courses/\">Cursos Online AI</a> Aplicación desarrollada con fines docentes',
|
125 |
examples=examples,
|
126 |
cache_examples=True,
|
127 |
+
retry_btn="Repetir",
|
128 |
+
undo_btn="Deshacer",
|
129 |
+
clear_btn="Borrar",
|
130 |
+
submit_btn="Enviar",
|
131 |
concurrency_limit=20,
|
132 |
).launch(show_api=False)
|