Abhiverse01's picture
Create app.py
77e0b1e
raw
history blame contribute delete
292 Bytes
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("loubnabnl/santacoder-code-to-text", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("loubnabnl/santacoder-code-to-text", trust_remote_code=True)