Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def extract_text_from_pdf(pdf):
|
|
20 |
def main():
|
21 |
llm = LlamaCPP(
|
22 |
model_url=None,
|
23 |
-
model_path='
|
24 |
temperature=0.1,
|
25 |
max_new_tokens=512,
|
26 |
context_window=2048,
|
@@ -31,7 +31,7 @@ def main():
|
|
31 |
)
|
32 |
|
33 |
embed_model = LangchainEmbedding(
|
34 |
-
HuggingFaceEmbeddings(model_name="
|
35 |
)
|
36 |
|
37 |
service_context = ServiceContext.from_defaults(
|
|
|
20 |
def main():
|
21 |
llm = LlamaCPP(
|
22 |
model_url=None,
|
23 |
+
model_path='phi-2.Q4_K_M.gguf',
|
24 |
temperature=0.1,
|
25 |
max_new_tokens=512,
|
26 |
context_window=2048,
|
|
|
31 |
)
|
32 |
|
33 |
embed_model = LangchainEmbedding(
|
34 |
+
HuggingFaceEmbeddings(model_name="bge-small-en-v1.5")
|
35 |
)
|
36 |
|
37 |
service_context = ServiceContext.from_defaults(
|