Wolof to French doesnt output french

#2
by thomaspedot - opened

Hello,
I open a new thread.

With inference API and taking exemple, this request gives Wolof output when we expect french :


API_URL = "https://api-inference.huggingface.co/models/cifope/nllb-200-wo-fr-distilled-600M"
headers = {"Authorization": "Bearer XXXXXXXXXXXXXXX"}

def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()

wolof_text = "alkaati yi tàmbali nañu xàll léegi kilifa gi ñów"

output = query({
"inputs": wolof_text,
"parameters": {
"src_lang": "wol_Latn", # Source language: Russian
"tgt_lang": "fra_Latn" # Target language: Wolof
}
})

print(output)

Output :

[{'translation_text': 'Alkaati yi tàmbali nañu xàll léegi kilifa gi ñów'}]

What are the expected output ?
french_text = "L'argent peut être échangé à la seule banque des îles située à Stanley"
wolof_text = "alkaati yi tàmbali nañu xàll léegi kilifa gi ñów"

Sign up or log in to comment