pull/21914/head
keenborder786 2 weeks ago
parent 242eeb537f
commit e918015cf8

@ -133,8 +133,8 @@
"llm = HuggingFaceEndpoint(\n",
" repo_id=repo_id, max_length=128, temperature=0.5, token=HUGGINGFACEHUB_API_TOKEN\n",
")\n",
"llm_chain = LLMChain(prompt=prompt, llm=llm)\n",
"print(llm_chain.run(question))"
"llm_chain = prompt | llm\n",
"print(llm_chain.invoke({'question':question}))"
]
},
{

Loading…
Cancel
Save