Update app.py
Browse files
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 (
|
124 |
-
fact_extraction_chain = LLMChain(llm=
|
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
|