Update app.py
Browse files
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 |
-
|
| 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
|