joaopimenta commited on
Commit
df8a74c
verified
1 Parent(s): e41d859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -338,8 +338,12 @@ elif page== "馃搳 Tabular Data":
338
 
339
 
340
  # 馃搨 Define the path for the coockies
341
- cookie_path_dir = "/home/user/app/cookies/"
342
- os.makedirs(cookie_path_dir, exist_ok=True) # Criar diret贸rio se n茫o existir
 
 
 
 
343
 
344
  # Log in and save cookies
345
  try:
 
338
 
339
 
340
  # 馃搨 Define the path for the coockies
341
+ import shutil
342
+
343
+ cookie_path_dir = "./cookies_snapshot"
344
+ shutil.rmtree(cookie_path_dir, ignore_errors=True) # Remove a pasta e os cookies
345
+ os.makedirs(cookie_path_dir, exist_ok=True) # Cria novamente
346
+
347
 
348
  # Log in and save cookies
349
  try: