diff --git a/DialogManager.ipynb b/DialogManager.ipynb index 542815e..39efc8c 100644 --- a/DialogManager.ipynb +++ b/DialogManager.ipynb @@ -147,13 +147,13 @@ " system_action[(domain, 'NoOffer')] = []\n", " else:\n", " system_action[(domain, 'Inform')].append(['Choice', str(len(self.results))])\n", - "\n", " if domain == \"product\":\n", " # Select the first product that matches the user's constraints\n", " for product in self.results:\n", " if all(product.get(slot, '').lower() == value.lower() for slot, value in constraints):\n", " system_action[(domain, 'Recommend')].append(['Name', product['name']])\n", - " break\n" + " break\n", + "\n" ] }, { diff --git a/product_db.json b/product_db.json index ed57b9c..c1eface 100644 --- a/product_db.json +++ b/product_db.json @@ -1,19 +1,5 @@ { "database":{ - "payment":[ - { - "type":"karta", - "amount":"21 zł", - "loyalty_card":"23232323" - } - ], - "delivery":[ - { - "type":"paczkomat", - "address":"Aleje", - "time":"15:30" - } - ], "product":[ { "name":"banan",