Spaces:
Build error
Build error
Update app.py
Browse files6 unmodified lines789101110111259 unmodified lines7273747775767778798081826 unmodified linesimport time
HF_TOKEN = os.environ.get("HF_TOKEN", None)MODEL_ID = "CohereForAI/aya-23-8B"MODEL_NAME = MODEL_ID.split("/")[-1]59 unmodified lines temperature=temperature, )
gen_text = tokenizer.decode(gen_tokens[0]) gen_tokens = [ gt[prompt_padded_len:] for gt in gen_tokens ]
gen_text = tokenizer.batch_decode(gen_tokens, skip_special_tokens=True)
return gen_text
app.py+5-3