Spaces:
Runtime error
Runtime error
Download frontend.py from NLPChatBotTeam/ChatBot-NLP: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/NLPChatBotTeam/ChatBot-NLP/resolve/7a4ce4da4e8935c22a20f2b4b0ea5fa7d2119d38/frontend.py
- Command line
-
hf download hf://spaces/NLPChatBotTeam/ChatBot-NLP@7a4ce4da4e8935c22a20f2b4b0ea5fa7d2119d38/frontend.py
-
curl -L -o frontend.py https://huggingface.co/spaces/NLPChatBotTeam/ChatBot-NLP/resolve/7a4ce4da4e8935c22a20f2b4b0ea5fa7d2119d38/frontend.py
431 Bytes
| import gradio as gr | |
| from backend import responder_pregunta | |
| demo = gr.ChatInterface( | |
| responder_pregunta, | |
| title="🤖 ChatBot Ayacucho", | |
| description="Asistente histórico basado en RAG sobre la Batalla de Ayacucho.", | |
| examples=[ | |
| "¿Qué fue la Batalla de Ayacucho?", | |
| "¿Quién ganó la batalla?", | |
| "¿Qué consecuencias tuvo?", | |
| "¿Por qué fue importante para América Latina?" | |
| ], | |
| ) |