Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
import gradio as gr
|
2 |
import fasttext
|
3 |
import os
|
|
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
|
6 |
# Téléchargement du modèle depuis Hugging Face
|
7 |
-
model_path = hf_hub_download(repo_id="facebook/
|
8 |
|
9 |
# Vérifier si le modèle a bien été téléchargé
|
10 |
if not os.path.exists(model_path):
|
|
|
|
|
1 |
import fasttext
|
2 |
import os
|
3 |
+
import gradio as gr
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
|
6 |
# Téléchargement du modèle depuis Hugging Face
|
7 |
+
model_path = hf_hub_download(repo_id="facebook/nllb-200-distilled-1.3B", filename="lid218e.bin")
|
8 |
|
9 |
# Vérifier si le modèle a bien été téléchargé
|
10 |
if not os.path.exists(model_path):
|