Ankitajadhav commited on
Commit
abab33a
·
verified ·
1 Parent(s): 5bcbe46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,8 +85,8 @@ vector_store.populate_vectors(dataset=None)
85
 
86
  # load model orca-mini general purpose model
87
  model_name = 'mistral-7b-openorca.gguf2.Q4_0.gguf'
88
- model_path = Path.home() / '.cache' / 'gpt4all'
89
- model = GPT4All(model_name=model_name, model_path=model_path)
90
 
91
  # Define the chatbot response function
92
  def chatbot_response(user_input):
 
85
 
86
  # load model orca-mini general purpose model
87
  model_name = 'mistral-7b-openorca.gguf2.Q4_0.gguf'
88
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
89
+ model = AutoModelForCausalLM.from_pretrained(model_name)
90
 
91
  # Define the chatbot response function
92
  def chatbot_response(user_input):