Any Collab on the process ?
Hi
@cifope
,
def nga liggéey bu baax. Ndax am nga ab téere ci sa jëfandikukat bu waxtu?
Gërëm nga!
Bonjour, je viens d'essayer mais le wolof renvoie que du wolof ?
import requests
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": "fra_Latn", # Source language: Russian
"tgt_lang": "wol_Latn" # Target language: Wolof
}
})
print(output)
the error here is the target and the source use this following code
import requests
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)