Update app.py
Browse files
app.py
CHANGED
|
@@ -1,22 +1,5 @@
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
""" ROBOTSMALI — Sous-titrage Bambara (V4.8 Colab Ready - Remuxage Vidéo) """
|
| 3 |
-
|
| 4 |
-
# =========================================================================
|
| 5 |
-
# 1. INSTALLATION ET MISE À JOUR DES DÉPENDANCES
|
| 6 |
-
# =========================================================================
|
| 7 |
-
print("Démarrage de l'installation des dépendances...")
|
| 8 |
-
|
| 9 |
-
# Installation de FFmpeg (nécessaire pour ffprobe et extraction/burn)
|
| 10 |
-
!apt-get update && apt-get install -y ffmpeg
|
| 11 |
-
|
| 12 |
-
# Installation des librairies Python essentielles et des outils NeMo
|
| 13 |
-
!pip install torch numpy soundfile librosa huggingface_hub gradio
|
| 14 |
-
!pip install nemo_toolkit[asr]
|
| 15 |
-
!pip install ctc-segmentation
|
| 16 |
-
!pip install --upgrade gradio # Mise à jour de Gradio pour la compatibilité
|
| 17 |
-
print("Installation des dépendances terminée.")
|
| 18 |
-
# =========================================================================
|
| 19 |
-
|
| 20 |
import os
|
| 21 |
import shlex
|
| 22 |
import subprocess
|
|
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
""" ROBOTSMALI — Sous-titrage Bambara (V4.8 Colab Ready - Remuxage Vidéo) """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import os
|
| 4 |
import shlex
|
| 5 |
import subprocess
|