Spaces:
Running
Running
Update app.py
Browse fileshack to remove Marriage & Divorce.db
app.py
CHANGED
|
@@ -355,7 +355,9 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel, clip_text, d
|
|
| 355 |
if user_window == unames[0] and pwd_window == pwdList[0]:
|
| 356 |
isBoss = True
|
| 357 |
if prompt.startswith('delete'):
|
| 358 |
-
|
|
|
|
|
|
|
| 359 |
if not os.path.exists(db_path):
|
| 360 |
response = f'File {db_path} not found'
|
| 361 |
else:
|
|
|
|
| 355 |
if user_window == unames[0] and pwd_window == pwdList[0]:
|
| 356 |
isBoss = True
|
| 357 |
if prompt.startswith('delete'):
|
| 358 |
+
paths = glob(dataDir + 'Marriage*.db')
|
| 359 |
+
db_path = paths[0]
|
| 360 |
+
# db_path = dataDir + prompt[7:]
|
| 361 |
if not os.path.exists(db_path):
|
| 362 |
response = f'File {db_path} not found'
|
| 363 |
else:
|