Restart + "clean" console command after user is finished

This commit is contained in:
Adrian Klessa 2024-06-10 20:48:24 +02:00
parent 6598a84e48
commit 7a5064f19e

View File

@ -257,6 +257,7 @@ class NLG():
elif act == "offer":
return "Proszę oto menu zeskanuj kod QR aby je zobaczyć."
def dialogue_test():
model = Model()
@ -325,10 +326,17 @@ def dialogue_test():
response = model("Dobrze, nie mogę się już doczekać.")
print()
if __name__ == "__main__":
model = Model()
print("Chatbot Jarvis\n--------------")
while True:
print("\nUżytkownik: ")
user_input = input()
while user_input == "SYSTEM_FINISH":
print("\n\n\n\n\n\n\n\n\n\n\n\n")
model = Model()
print("Chatbot Jarvis\n--------------")
print("\nUżytkownik: ")
user_input = input()
response = model(user_input, debug=False)