Spaces:
Sleeping
Sleeping
dongyubin
commited on
Commit
·
855709e
1
Parent(s):
5da5905
提取
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def my_inference_function(url):
|
|
35 |
data = loader.load()
|
36 |
chain = load_qa_chain(llm=llm, chain_type="stuff")
|
37 |
# response = chain.run(input_documents=data, question="Summarize this article in a paragraph and provide a name and link")
|
38 |
-
response = chain.run(input_documents=data, question="
|
39 |
return response
|
40 |
|
41 |
if __name__ == '__main__':
|
|
|
35 |
data = loader.load()
|
36 |
chain = load_qa_chain(llm=llm, chain_type="stuff")
|
37 |
# response = chain.run(input_documents=data, question="Summarize this article in a paragraph and provide a name and link")
|
38 |
+
response = chain.run(input_documents=data, question="Extract or summarize the tool names, introductions, and links in the article. 提取或总结文章中的工具名称、介绍、链接")
|
39 |
return response
|
40 |
|
41 |
if __name__ == '__main__':
|