Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,12 +17,12 @@ from langchain_core.prompts import PromptTemplate
|
|
17 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
18 |
"""
|
19 |
client = InferenceClient("Qwen/Qwen2-7B-Instruct")
|
20 |
-
llm = ChatOpenAI(
|
21 |
-
|
22 |
-
|
23 |
|
24 |
qa = RetrievalQA.from_chain_type(
|
25 |
-
llm=
|
26 |
chain_type="stuff",
|
27 |
retriever=retriever,
|
28 |
chain_type_kwargs=chain_type_kwargs,
|
|
|
17 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
18 |
"""
|
19 |
client = InferenceClient("Qwen/Qwen2-7B-Instruct")
|
20 |
+
# llm = ChatOpenAI(
|
21 |
+
# model="Qwen/Qwen2-7B-Instruct",
|
22 |
+
# temperature=0.8,)
|
23 |
|
24 |
qa = RetrievalQA.from_chain_type(
|
25 |
+
llm=client,
|
26 |
chain_type="stuff",
|
27 |
retriever=retriever,
|
28 |
chain_type_kwargs=chain_type_kwargs,
|