Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ global_memory_saver = None # Initialize to None
|
|
| 69 |
try:
|
| 70 |
# Attempt to connect to SQLite
|
| 71 |
# Ensure the directory exists (though /data usually exists)
|
| 72 |
-
os.makedirs(os.path.dirname(SQLITE_DB_PATH), exist_ok=True)
|
| 73 |
|
| 74 |
# Use check_same_thread=False for Gradio/web apps that might access the DB from different threads
|
| 75 |
conn = sqlite3.connect(SQLITE_DB_PATH, check_same_thread=False)
|
|
|
|
| 69 |
try:
|
| 70 |
# Attempt to connect to SQLite
|
| 71 |
# Ensure the directory exists (though /data usually exists)
|
| 72 |
+
#os.makedirs(os.path.dirname(SQLITE_DB_PATH), exist_ok=True)
|
| 73 |
|
| 74 |
# Use check_same_thread=False for Gradio/web apps that might access the DB from different threads
|
| 75 |
conn = sqlite3.connect(SQLITE_DB_PATH, check_same_thread=False)
|