Clone77 commited on
Commit
c7836c8
·
verified ·
1 Parent(s): 498fde7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def get_image_context(image, question):
50
 
51
  # 🔥 Corrected LangChain setup
52
  model_id = "mistralai/Mistral-7B-Instruct-v0.3"
53
- tokenizer = AutoTokenizer.from_pretrained(model_id, token=hf)
54
  model = AutoModelForCausalLM.from_pretrained(model_id, token=hf)
55
 
56
  llm = ChatHuggingFace(llm=model, tokenizer=tokenizer)
 
50
 
51
  # 🔥 Corrected LangChain setup
52
  model_id = "mistralai/Mistral-7B-Instruct-v0.3"
53
+ tokenizer = AutoTokenizer.from_pretrained(model_id, token=hf,use_fast=False)
54
  model = AutoModelForCausalLM.from_pretrained(model_id, token=hf)
55
 
56
  llm = ChatHuggingFace(llm=model, tokenizer=tokenizer)