Finalne poprawki
This commit is contained in:
parent
437f5f7d72
commit
fefc6bd7bc
@ -45,7 +45,7 @@ while True:
|
||||
print(response)
|
||||
|
||||
if system_action.act == "bye_and_thanks" or system_action.act == "bye":
|
||||
print(monitor.print_order())
|
||||
monitor.print_order()
|
||||
break
|
||||
|
||||
if frame.act == "bye":
|
||||
|
@ -195,4 +195,11 @@ class DialogStateMonitor:
|
||||
self.state = copy.deepcopy(self.__initial_state)
|
||||
|
||||
def print_order(self) -> dict:
|
||||
return json.dumps(self.state['belief_state'])
|
||||
print("\n=== Oto podsumowanie Twojego zamówienia ===")
|
||||
for o in self.state['belief_state']['order']:
|
||||
print(o)
|
||||
print("Adres dostawy: ")
|
||||
print(self.state['belief_state']['order'])
|
||||
print("Numer telefonu: ")
|
||||
print(self.state['belief_state']['phone'])
|
||||
print(f"Czy zostało pomyślnie zrealizowane: {self.state['belief_state']['order-complete']}")
|
Loading…
Reference in New Issue
Block a user