Chris4K commited on
Commit
47736c9
1 Parent(s): 8031095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -120,8 +120,8 @@ fact_extraction_prompt = PromptTemplate(
120
  template="Extract the key facts out of this text. Don't include opinions. Give each fact a number and keep them short sentences. :\n\n {text_input}"
121
  )
122
 
123
- def factextraction (llm_factextract, message):
124
- fact_extraction_chain = LLMChain(llm=llm, prompt=fact_extraction_prompt)
125
  facts = fact_extraction_chain.run(message)
126
  print(facts)
127
  return facts
 
120
  template="Extract the key facts out of this text. Don't include opinions. Give each fact a number and keep them short sentences. :\n\n {text_input}"
121
  )
122
 
123
+ def factextraction (message):
124
+ fact_extraction_chain = LLMChain(llm=factextraction, prompt=fact_extraction_prompt)
125
  facts = fact_extraction_chain.run(message)
126
  print(facts)
127
  return facts