Spaces:
Runtime error
Runtime error
frontend_chatbot
Browse files- frontend.py +14 -0
frontend.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from backend import responder_pregunta
|
| 3 |
+
|
| 4 |
+
demo = gr.ChatInterface(
|
| 5 |
+
responder_pregunta,
|
| 6 |
+
title="🤖 ChatBot Ayacucho",
|
| 7 |
+
description="Asistente histórico basado en RAG sobre la Batalla de Ayacucho.",
|
| 8 |
+
examples=[
|
| 9 |
+
"¿Qué fue la Batalla de Ayacucho?",
|
| 10 |
+
"¿Quién ganó la batalla?",
|
| 11 |
+
"¿Qué consecuencias tuvo?",
|
| 12 |
+
"¿Por qué fue importante para América Latina?"
|
| 13 |
+
],
|
| 14 |
+
)
|