VeuReu commited on
Commit
8134888
verified
1 Parent(s): 7ee58ba

Upload 10 files

Browse files
Files changed (1) hide show
  1. refinement/reflection.py +5 -2
refinement/reflection.py CHANGED
@@ -30,8 +30,11 @@ DEMO_DIR = REPO_ROOT / "demo"
30
  DEMO_TEMP_DIR = DEMO_DIR / "temp"
31
  DEMO_DATA_DIR = DEMO_DIR / "data"
32
 
33
- TEMP_DIR = BASE_DIR / "temp"
34
- TEMP_DIR.mkdir(exist_ok=True)
 
 
 
35
 
36
  LOG_FILE = TEMP_DIR / "reflection.log"
37
 
 
30
  DEMO_TEMP_DIR = DEMO_DIR / "temp"
31
  DEMO_DATA_DIR = DEMO_DIR / "data"
32
 
33
+ # Directorio temporal y de logs para el m贸dulo de reflexi贸n. En el contenedor
34
+ # de Hugging Face, /app suele ser de solo lectura, mientras que /data es
35
+ # escribible. Usamos /data/reflection para evitar errores de permisos.
36
+ TEMP_DIR = Path("/data/reflection")
37
+ TEMP_DIR.mkdir(parents=True, exist_ok=True)
38
 
39
  LOG_FILE = TEMP_DIR / "reflection.log"
40