Mueble commited on
Commit
adfa218
·
verified ·
1 Parent(s): 302960f

frontend_chatbot

Browse files
Files changed (1) hide show
  1. 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
+ )