Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,9 +91,9 @@ def main():
|
|
91 |
# llm = HuggingFaceHub(
|
92 |
# repo_id=repo_id, model_kwargs={"temperature": 0.1, "max_length": 128})
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
|
99 |
if uploaded_file is not None :
|
|
|
91 |
# llm = HuggingFaceHub(
|
92 |
# repo_id=repo_id, model_kwargs={"temperature": 0.1, "max_length": 128})
|
93 |
|
94 |
+
llm = load_llama2_llamaCpp()
|
95 |
+
qa_prompt = set_custom_prompt()
|
96 |
+
embeddings = load_embeddings()
|
97 |
|
98 |
uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
|
99 |
if uploaded_file is not None :
|