Update app.py
Browse files
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)
|