kenghuoxiong commited on
Commit
44f203a
·
verified ·
1 Parent(s): 0a59602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- model="Qwen/Qwen2-7B-Instruct",
22
- temperature=0.8,)
23
 
24
  qa = RetrievalQA.from_chain_type(
25
- llm=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,