victor-johnson commited on
Commit
11c0784
Β·
verified Β·
1 Parent(s): 6ad397c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ from langchain import PromptTemplate, LLMChain
7
 
8
  # β€” Model setup (small enough to CPU-serve in a Space) β€”
9
  MODEL_ID = "bigcode/starcoder2-3b"
10
- tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
11
- model = AutoModelForCausalLM.from_pretrained(MODEL_ID)
12
 
13
  # wrap in a HF pipeline and LangChain LLM
14
  pipe = pipeline(
 
7
 
8
  # β€” Model setup (small enough to CPU-serve in a Space) β€”
9
  MODEL_ID = "bigcode/starcoder2-3b"
10
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID,trust_remote_code=True)
11
+ model = AutoModelForCausalLM.from_pretrained(MODEL_ID,trust_remote_code=True)
12
 
13
  # wrap in a HF pipeline and LangChain LLM
14
  pipe = pipeline(