fix
This commit is contained in:
parent
b7737efe0c
commit
1960d9b985
11
main.py
11
main.py
|
@ -203,16 +203,7 @@ if __name__ == "__main__":
|
||||||
threading.Thread(target=clear_inactive, name='clear').start()
|
threading.Thread(target=clear_inactive, name='clear').start()
|
||||||
rec = Recommender(retriever)
|
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,'
|
cur.execute('CREATE TABLE IF NOT EXISTS feedback_experimental (id serial PRIMARY KEY,'
|
||||||
'query text NOT NULL,'
|
'query text NOT NULL,'
|
||||||
'history text NOT NULL,'
|
'history text NOT NULL,'
|
||||||
|
|
Loading…
Reference in New Issue