I would suggest you to use a model trained on that task instead, like OPUS models.
!pip install transformers
!pip install sentencepiece
from transformers import pipeline
translation = pipeline("translation", "Helsinki-NLP/opus-mt-fr-de")
tr_text = translation("bonjour je voudrais un camembert.")
tr_text[0]["translation_text"]
## Hallo, ich hätte gern einen Camembert.