Download scripts/ask.py from aionaion/chatdoc: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/aionaion/chatdoc/resolve/main/scripts/ask.py
- Command line
-
hf download hf://spaces/aionaion/chatdoc/scripts/ask.py
-
curl -L -o ask.py https://huggingface.co/spaces/aionaion/chatdoc/resolve/main/scripts/ask.py
248 Bytes
| #!/usr/bin/env python3 | |
| import sys | |
| sys.path.append("../app") | |
| from app.services.rag_service import RAGService | |
| rag = RAGService() | |
| pergunta = input("Pergunta: ").strip() | |
| resposta = rag.query(pergunta) | |
| print(f"\nResposta: {resposta['answer']}") |