Upload 2 files
Browse files
utils.py
CHANGED
|
@@ -19,7 +19,8 @@ def get_project_root() -> Path:
|
|
| 19 |
"""
|
| 20 |
if os.getenv("SPACE_ID") is not None:
|
| 21 |
return Path("/tmp/data")
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
def incrustar_subtitulos_ffmpeg(
|
|
|
|
| 19 |
"""
|
| 20 |
if os.getenv("SPACE_ID") is not None:
|
| 21 |
return Path("/tmp/data")
|
| 22 |
+
# En local, la raíz del proyecto es la carpeta 'app', que contiene este fichero.
|
| 23 |
+
return Path(__file__).resolve().parent.parent
|
| 24 |
|
| 25 |
|
| 26 |
def incrustar_subtitulos_ffmpeg(
|