From 1960d9b98576dd5a1d8abd1e12b8b88924317c7e Mon Sep 17 00:00:00 2001 From: ahmed531998 Date: Tue, 18 Apr 2023 23:40:23 +0200 Subject: [PATCH] fix --- main.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main.py b/main.py index 99f7bc1..8f5a2f0 100644 --- a/main.py +++ b/main.py @@ -203,16 +203,7 @@ if __name__ == "__main__": threading.Thread(target=clear_inactive, name='clear').start() rec = Recommender(retriever) - for filename in os.listdir("/app/"): - file_path = os.path.join(folder, filename) - try: - if os.path.isfile(file_path) or os.path.islink(file_path): - os.unlink(file_path) - elif os.path.isdir(file_path): - shutil.rmtree(file_path) - except Exception as e: - print('Failed to delete %s. Reason: %s' % (file_path, e)) - + cur.execute('CREATE TABLE IF NOT EXISTS feedback_experimental (id serial PRIMARY KEY,' 'query text NOT NULL,' 'history text NOT NULL,'