Inference in Hub displaying empty String (Task Translation)
Hello there!I´ve been working on Translation tasks fine-tunning some examples from the Transformers repository.The BLEU score is reasonably good , but the Inference mode in the HUB for translation returns an empty string or a point and an error in local that Im not able to move from.Managed toupload it sucessfullyto theHubWhen the model was uploaded to the Hub, it was uploaded with another task, and I changed it following the recommendations fromthis issueHowever, when I run Inferece it returns an empty stringWhen I try to do it locally via this script, it returned the errorpython inference.py --model_name="SoyGema/english-hebrew" --input_text="Hello, my name is Sara"
Downloading (…)lve/main/config.json: 100%|█████████████████████████| 1.67k/1.67k [00:00<00:00, 3.64MB/s]
Downloading model.safetensors: 100%|█████████████████████████████████| 242M/242M [00:07<00:00, 31.4MB/s]
Downloading (…)neration_config.json: 100%|██████████████████████████████| 117/117 [00:00<00:00, 422kB/s]
Downloading (…)okenizer_config.json: 100%|█████████████████████████| 2.32k/2.32k [00:00<00:00, 6.87MB/s]
Downloading spiece.model: 100%|██████████████████████████████████████| 792k/792k [00:00<00:00, 2.08MB/s]
Downloading (…)/main/tokenizer.json: 100%|█████████████████████████| 2.42M/2.42M [00:00<00:00, 3.93MB/s]
Downloading (…)cial_tokens_map.json: 100%|█████████████████████████| 2.20k/2.20k [00:00<00:00, 7.49MB/s]
/Users/gema/Documents/The-Lord-of-The-Words-The-two-frameworks/.torchenv/lib/python3.10/site-packages/transformers/pipelines/__init__.py:1003: UserWarning: "translation" task was used, instead of "translation_XX_to_YY", defaulting to "translation_en_to_de"
  warnings.warn(
Translated text: ,   .So  moving from that what I did is changing theconfig.jsonfile adding the language at hand but I wasn´t able to make it work. It returns an empty string as well, but it seems to be catching another default config…Any idea of how to move from this point would be much appreciated !Thanks in advance!