Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from huggingface_hub import hf_hub_download
|
4 |
|
5 |
# Télécharger le modèle depuis Hugging Face
|
6 |
-
model_path = hf_hub_download(repo_id="facebook/fasttext-language-identification", filename="
|
7 |
|
8 |
# Charger le modèle avec FastText
|
9 |
model = fasttext.load_model(model_path)
|
|
|
3 |
from huggingface_hub import hf_hub_download
|
4 |
|
5 |
# Télécharger le modèle depuis Hugging Face
|
6 |
+
model_path = hf_hub_download(repo_id="facebook/fasttext-language-identification", filename="model.bin")
|
7 |
|
8 |
# Charger le modèle avec FastText
|
9 |
model = fasttext.load_model(model_path)
|