middha commited on
Commit
c82fd8d
Β·
verified Β·
1 Parent(s): 2d70616

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -36,10 +36,10 @@ if not OPENAI_API_KEY:
36
  app.logger.warning("OPENAI_API_KEY is not set in the environment")
37
 
38
  # ─── 5) Copy bundled DB into writable volume on first run ────────────────────
39
- SRC = os.path.join(os.getcwd(), "instance", "jobs.db") # your committed copy
40
- DST = "/mnt/data/jobs.db" # writable on HF Spaces
41
- if os.path.exists(SRC) and not os.path.exists(DST):
42
- shutil.copy(SRC, DST)
43
 
44
  # ─── 6) Database configuration ───────────────────────────────────────────────
45
  # Four slashes β†’ absolute path
 
36
  app.logger.warning("OPENAI_API_KEY is not set in the environment")
37
 
38
  # ─── 5) Copy bundled DB into writable volume on first run ────────────────────
39
+ #SRC = os.path.join(os.getcwd(), "instance", "jobs.db") # your committed copy
40
+ #DST = "/mnt/data/jobs.db" # writable on HF Spaces
41
+ #if os.path.exists(SRC) and not os.path.exists(DST):
42
+ # shutil.copy(SRC, DST)
43
 
44
  # ─── 6) Database configuration ───────────────────────────────────────────────
45
  # Four slashes β†’ absolute path