changed feedback data folder

This commit is contained in:
nird
2024-07-28 13:57:31 +03:00
parent d3da5f5bb3
commit 0c94800621

View File

@@ -192,7 +192,7 @@
"outputs": [],
"source": [
"def store_feedback(feedback):\n",
" with open(\"feedback_data.json\", \"a\") as f:\n",
" with open(\"../data/feedback_data.json\", \"a\") as f:\n",
" json.dump(feedback, f)\n",
" f.write(\"\\n\")"
]
@@ -213,7 +213,7 @@
"def load_feedback_data():\n",
" feedback_data = []\n",
" try:\n",
" with open(\"feedback_data.json\", \"r\") as f:\n",
" with open(\"../data/feedback_data.json\", \"r\") as f:\n",
" for line in f:\n",
" feedback_data.append(json.loads(line.strip()))\n",
" except FileNotFoundError:\n",