broadfield-dev commited on
Commit
05a3210
·
verified ·
1 Parent(s): dae8d04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def init_db():
75
  # 2. Initialize Memvid (Fixes 'no attribute create' error)
76
  try:
77
  if os.path.exists(DB_PATH):
78
- db = open_memvid(DB_PATH) # Use the imported 'open' function
79
  else:
80
  db = create(DB_PATH) # Use the imported 'create' function
81
 
 
75
  # 2. Initialize Memvid (Fixes 'no attribute create' error)
76
  try:
77
  if os.path.exists(DB_PATH):
78
+ db = open_memvid(DB_PATH, read_only=False) # Use the imported 'open' function
79
  else:
80
  db = create(DB_PATH) # Use the imported 'create' function
81