Spaces:
Sleeping
Sleeping
vidhiparikh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def create_conversational_chain(database):
|
|
83 |
model_path = model_file
|
84 |
print("Model file found in the directory. Using the local model file.")
|
85 |
else:
|
86 |
-
model_path =
|
87 |
print("Model file not found in the directory. Downloading the model from the repository.")
|
88 |
#Load the model
|
89 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|
|
|
83 |
model_path = model_file
|
84 |
print("Model file found in the directory. Using the local model file.")
|
85 |
else:
|
86 |
+
model_path = "https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGUF/blob/main/llama-2-7b-chat.Q8_0.gguf"
|
87 |
print("Model file not found in the directory. Downloading the model from the repository.")
|
88 |
#Load the model
|
89 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|