Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,10 @@ Question: {question}
|
|
| 24 |
Answer:"""
|
| 25 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
llm_chain = LLMChain(llm=llm, prompt=prompt)
|
| 30 |
new_db = Chroma(embedding_function=embeddings)
|
| 31 |
|
|
|
|
| 24 |
Answer:"""
|
| 25 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 26 |
|
| 27 |
+
|
| 28 |
+
model='quarto.bin'
|
| 29 |
+
llm = LlamaCpp(model_path=model)
|
| 30 |
+
embeddings = LlamaCppEmbeddings(model_path=model)
|
| 31 |
llm_chain = LLMChain(llm=llm, prompt=prompt)
|
| 32 |
new_db = Chroma(embedding_function=embeddings)
|
| 33 |
|