velvet-api / views /cli_interface.py
Grilocas77's picture
Upload 25 files
e679b32 verified
raw
history blame contribute delete
507 Bytes
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from controllers.chatbot_controller import process_user_input
def chat():
print("Chatbot Velvet-2B (CLI). Digite 'sair' para terminar.")
while True:
pergunta = input("\nPergunta: ")
if pergunta.lower() == "sair":
break
resposta = process_user_input(pergunta)
print(f"Resposta: {resposta}")
if __name__ == "__main__":
chat()