Restart + "clean" console command after user is finished
This commit is contained in:
parent
6598a84e48
commit
7a5064f19e
@ -257,6 +257,7 @@ class NLG():
|
|||||||
elif act == "offer":
|
elif act == "offer":
|
||||||
return "Proszę oto menu zeskanuj kod QR aby je zobaczyć."
|
return "Proszę oto menu zeskanuj kod QR aby je zobaczyć."
|
||||||
|
|
||||||
|
|
||||||
def dialogue_test():
|
def dialogue_test():
|
||||||
model = Model()
|
model = Model()
|
||||||
|
|
||||||
@ -325,10 +326,17 @@ def dialogue_test():
|
|||||||
response = model("Dobrze, nie mogę się już doczekać.")
|
response = model("Dobrze, nie mogę się już doczekać.")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
model = Model()
|
model = Model()
|
||||||
print("Chatbot Jarvis\n--------------")
|
print("Chatbot Jarvis\n--------------")
|
||||||
while True:
|
while True:
|
||||||
print("\nUżytkownik: ")
|
print("\nUżytkownik: ")
|
||||||
user_input = input()
|
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)
|
response = model(user_input, debug=False)
|
Loading…
Reference in New Issue
Block a user