Spaces:
Build error
Build error
update app.py
Browse files
app.py
CHANGED
|
@@ -80,21 +80,23 @@ demo = gr.Interface(
|
|
| 80 |
fn=wrap_generar_recomendacion,
|
| 81 |
inputs=[gr.inputs.Number(label="User ID"), gr.inputs.Checkbox(label="Drama"), gr.inputs.Checkbox(label="Comedy"), gr.inputs.Checkbox(label="Horror"), gr.inputs.Checkbox(label="Romance"), gr.inputs.Number(label="Top")],
|
| 82 |
outputs=[gr.outputs.Textbox(), gr.outputs.Image(type='pil')],
|
| 83 |
-
title = '<h1 style="text-align: center;">STREAMREC</h1>',
|
| 84 |
description = """
|
| 85 |
<p>
|
| 86 |
<center>
|
| 87 |
-
<font size="4">
|
| 88 |
Sistema de Recomendaciones Personalizadas de Películas y Series
|
| 89 |
</font>
|
| 90 |
-
<p><b>Advertencia: Ingresa el ID del usuario (user_id), selecciona los géneros de interés y la cantidad de recomendaciones que te gustaría generar.
|
| 91 |
Te mostraremos algunas películas que pueden gustarte.</b></p>
|
| 92 |
<img src="https://i.pinimg.com/originals/7f/98/5f/7f985f73b945257808a6e46c3da89723.jpg" alt="logo" width="250"/>
|
| 93 |
</center>
|
| 94 |
</p>
|
| 95 |
""",
|
| 96 |
-
allow_flagging='auto'
|
|
|
|
|
|
|
| 97 |
)
|
| 98 |
|
| 99 |
# Lanzar la interfaz
|
| 100 |
-
demo.launch()
|
|
|
|
| 80 |
fn=wrap_generar_recomendacion,
|
| 81 |
inputs=[gr.inputs.Number(label="User ID"), gr.inputs.Checkbox(label="Drama"), gr.inputs.Checkbox(label="Comedy"), gr.inputs.Checkbox(label="Horror"), gr.inputs.Checkbox(label="Romance"), gr.inputs.Number(label="Top")],
|
| 82 |
outputs=[gr.outputs.Textbox(), gr.outputs.Image(type='pil')],
|
| 83 |
+
title = '<h1 style="text-align: center; color: #FF6347;">STREAMREC</h1>',
|
| 84 |
description = """
|
| 85 |
<p>
|
| 86 |
<center>
|
| 87 |
+
<font size="4" face="Arial" color="white">
|
| 88 |
Sistema de Recomendaciones Personalizadas de Películas y Series
|
| 89 |
</font>
|
| 90 |
+
<p><b style="color: #DC143C;">Advertencia: Ingresa el ID del usuario (user_id), selecciona los géneros de interés y la cantidad de recomendaciones que te gustaría generar.
|
| 91 |
Te mostraremos algunas películas que pueden gustarte.</b></p>
|
| 92 |
<img src="https://i.pinimg.com/originals/7f/98/5f/7f985f73b945257808a6e46c3da89723.jpg" alt="logo" width="250"/>
|
| 93 |
</center>
|
| 94 |
</p>
|
| 95 |
""",
|
| 96 |
+
allow_flagging='auto',
|
| 97 |
+
theme="huggingface", # establece un tema predefinido
|
| 98 |
+
favicon="https://ruta-a-tu-favicon.com/favicon.png", # establece tu favicon personalizado
|
| 99 |
)
|
| 100 |
|
| 101 |
# Lanzar la interfaz
|
| 102 |
+
demo.launch()
|