Upload api.py
Browse files
api.py
CHANGED
|
@@ -142,7 +142,8 @@ def serve_character_file(video_name: str, char_id: str, filename: str):
|
|
| 142 |
Sirve archivos estáticos de personajes (imágenes).
|
| 143 |
Ejemplo: /files/dif_catala_1/char1/representative.jpg
|
| 144 |
"""
|
| 145 |
-
|
|
|
|
| 146 |
|
| 147 |
if not file_path.exists():
|
| 148 |
raise HTTPException(status_code=404, detail="File not found")
|
|
|
|
| 142 |
Sirve archivos estáticos de personajes (imágenes).
|
| 143 |
Ejemplo: /files/dif_catala_1/char1/representative.jpg
|
| 144 |
"""
|
| 145 |
+
# Las caras se guardan en /tmp/temp/<video>/characters/<char_id>/<filename>
|
| 146 |
+
file_path = TEMP_ROOT / video_name / "characters" / char_id / filename
|
| 147 |
|
| 148 |
if not file_path.exists():
|
| 149 |
raise HTTPException(status_code=404, detail="File not found")
|