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":
|
||||
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)
|
Loading…
Reference in New Issue
Block a user