Spaces:
Running on Zero
Running on Zero
Deploiement GuindiMa AI (interface Gradio)
Browse files- app.py +3 -3
- data/audit/voix_complete.csv +11 -11
- data/audit/voix_gare.csv +12 -0
app.py
CHANGED
|
@@ -44,7 +44,7 @@ RACINE = Path(__file__).resolve().parent
|
|
| 44 |
# que src/ soit dans le chemin, y compris quand app.py est lancé depuis la racine.
|
| 45 |
sys.path.insert(0, str(RACINE / "src"))
|
| 46 |
|
| 47 |
-
from app.cartes import titre_autre_possibilite # noqa: E402
|
| 48 |
from app.partage import bouton_partage # noqa: E402
|
| 49 |
from asr.transcribe import ( # noqa: E402
|
| 50 |
MODEL_ASR_GPU,
|
|
@@ -1019,7 +1019,7 @@ def _carte(
|
|
| 1019 |
return "".join(blocs)
|
| 1020 |
|
| 1021 |
if correspondances:
|
| 1022 |
-
blocs.append("
|
| 1023 |
for numero, trajet in enumerate(
|
| 1024 |
correspondances[:MAX_POSSIBILITES], start=1
|
| 1025 |
):
|
|
@@ -1034,7 +1034,7 @@ def _carte(
|
|
| 1034 |
blocs.append(bouton_partage(depart, arrivee, resultat, trajet))
|
| 1035 |
|
| 1036 |
if trajets_2:
|
| 1037 |
-
blocs.append("
|
| 1038 |
for numero, trajet in enumerate(
|
| 1039 |
trajets_2[:MAX_POSSIBILITES], start=1
|
| 1040 |
):
|
|
|
|
| 44 |
# que src/ soit dans le chemin, y compris quand app.py est lancé depuis la racine.
|
| 45 |
sys.path.insert(0, str(RACINE / "src"))
|
| 46 |
|
| 47 |
+
from app.cartes import titre_autre_possibilite, titre_section # noqa: E402
|
| 48 |
from app.partage import bouton_partage # noqa: E402
|
| 49 |
from asr.transcribe import ( # noqa: E402
|
| 50 |
MODEL_ASR_GPU,
|
|
|
|
| 1019 |
return "".join(blocs)
|
| 1020 |
|
| 1021 |
if correspondances:
|
| 1022 |
+
blocs.append(titre_section("🔁 Pas de bus direct : un changement suffit"))
|
| 1023 |
for numero, trajet in enumerate(
|
| 1024 |
correspondances[:MAX_POSSIBILITES], start=1
|
| 1025 |
):
|
|
|
|
| 1034 |
blocs.append(bouton_partage(depart, arrivee, resultat, trajet))
|
| 1035 |
|
| 1036 |
if trajets_2:
|
| 1037 |
+
blocs.append(titre_section("🔁 Avec deux changements"))
|
| 1038 |
for numero, trajet in enumerate(
|
| 1039 |
trajets_2[:MAX_POSSIBILITES], start=1
|
| 1040 |
):
|
data/audit/voix_complete.csv
CHANGED
|
@@ -297,15 +297,15 @@ lieu,Front de Terre,lieu_front_de_terre.wav,tts_cache
|
|
| 297 |
lieu,Grand Dakar,lieu_g_dakar.wav,tts_cache
|
| 298 |
lieu,Gaddaay,lieu_gadaye.wav,tts_cache
|
| 299 |
lieu,Garage Guédiawaye,lieu_garage_guediawaye.wav,tts_cache
|
| 300 |
-
lieu,
|
| 301 |
-
lieu,
|
| 302 |
-
lieu,
|
| 303 |
-
lieu,
|
| 304 |
-
lieu,
|
| 305 |
-
lieu,
|
| 306 |
-
lieu,
|
| 307 |
-
lieu,
|
| 308 |
-
lieu,
|
| 309 |
lieu,Giratoire de Liberté six,lieu_giratoire_de_liberte_six.wav,tts_cache
|
| 310 |
lieu,Giratoire Liberté six,lieu_giratoire_liberte_six.wav,tts_cache
|
| 311 |
lieu,Golf,lieu_golf.wav,tts_cache
|
|
@@ -732,8 +732,8 @@ arret,Espace HLM Grand Médine,lieu_espace_hlm_grand_medine.wav,tts_cache_ajouts
|
|
| 732 |
arret,Esso Port,lieu_esso_port.wav,tts_cache_ajouts
|
| 733 |
arret,Esso Port Embarcadère,lieu_esso_port_embarcadere.wav,tts_cache_ajouts
|
| 734 |
arret,G M D,lieu_g_m_d.wav,tts_cache_ajouts
|
| 735 |
-
arret,
|
| 736 |
-
arret,
|
| 737 |
arret,Gorom zéro deux,lieu_gorom_zero_deux.wav,tts_cache_ajouts
|
| 738 |
arret,Gorom zéro un,lieu_gorom_zero_un.wav,tts_cache_ajouts
|
| 739 |
arret,Grand Moulin de Dakar,lieu_grand_moulin_de_dakar.wav,tts_cache_ajouts
|
|
|
|
| 297 |
lieu,Grand Dakar,lieu_g_dakar.wav,tts_cache
|
| 298 |
lieu,Gaddaay,lieu_gadaye.wav,tts_cache
|
| 299 |
lieu,Garage Guédiawaye,lieu_garage_guediawaye.wav,tts_cache
|
| 300 |
+
lieu,Gaar de Colobane,lieu_gare_de_colobane.wav,tts_cache
|
| 301 |
+
lieu,Gaar de Dakar,lieu_gare_de_dakar.wav,tts_cache
|
| 302 |
+
lieu,Gaar de Diamniadio,lieu_gare_de_diamniadio.wav,tts_cache
|
| 303 |
+
lieu,Gaar de Petersen,lieu_gare_de_petersen.wav,tts_cache
|
| 304 |
+
lieu,Gaar des Baux Maraîchers,lieu_gare_des_baux_maraichers.wav,tts_cache
|
| 305 |
+
lieu,Gaar des Parcelles Assainies,lieu_gare_des_parcelles_assainies.wav,tts_cache
|
| 306 |
+
lieu,Gaar Lat Dior,lieu_gare_lat_dior.wav,tts_cache
|
| 307 |
+
lieu,Gaar Petersen,lieu_gare_petersen.wav,tts_cache
|
| 308 |
+
lieu,Gaar routière de Colobane,lieu_gare_routiere_de_colobane.wav,tts_cache
|
| 309 |
lieu,Giratoire de Liberté six,lieu_giratoire_de_liberte_six.wav,tts_cache
|
| 310 |
lieu,Giratoire Liberté six,lieu_giratoire_liberte_six.wav,tts_cache
|
| 311 |
lieu,Golf,lieu_golf.wav,tts_cache
|
|
|
|
| 732 |
arret,Esso Port,lieu_esso_port.wav,tts_cache_ajouts
|
| 733 |
arret,Esso Port Embarcadère,lieu_esso_port_embarcadere.wav,tts_cache_ajouts
|
| 734 |
arret,G M D,lieu_g_m_d.wav,tts_cache_ajouts
|
| 735 |
+
arret,Gaar Ter,lieu_gare_ter.wav,tts_cache_ajouts
|
| 736 |
+
arret,Gaar de Rufisque,lieu_gare_de_rufisque.wav,tts_cache_ajouts
|
| 737 |
arret,Gorom zéro deux,lieu_gorom_zero_deux.wav,tts_cache_ajouts
|
| 738 |
arret,Gorom zéro un,lieu_gorom_zero_un.wav,tts_cache_ajouts
|
| 739 |
arret,Grand Moulin de Dakar,lieu_grand_moulin_de_dakar.wav,tts_cache_ajouts
|
data/audit/voix_gare.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fichier,phrase
|
| 2 |
+
lieu_gare_de_colobane.wav,Gaar de Colobane
|
| 3 |
+
lieu_gare_de_dakar.wav,Gaar de Dakar
|
| 4 |
+
lieu_gare_de_diamniadio.wav,Gaar de Diamniadio
|
| 5 |
+
lieu_gare_de_petersen.wav,Gaar de Petersen
|
| 6 |
+
lieu_gare_des_baux_maraichers.wav,Gaar des Baux Maraîchers
|
| 7 |
+
lieu_gare_des_parcelles_assainies.wav,Gaar des Parcelles Assainies
|
| 8 |
+
lieu_gare_lat_dior.wav,Gaar Lat Dior
|
| 9 |
+
lieu_gare_petersen.wav,Gaar Petersen
|
| 10 |
+
lieu_gare_routiere_de_colobane.wav,Gaar routière de Colobane
|
| 11 |
+
lieu_gare_ter.wav,Gaar Ter
|
| 12 |
+
lieu_gare_de_rufisque.wav,Gaar de Rufisque
|