Spaces:
Sleeping
Sleeping
dongyubin
commited on
Commit
·
71fa0cb
1
Parent(s):
7af8f3b
中文
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ def my_inference_function(url):
|
|
34 |
loader = UnstructuredURLLoader(urls=[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 |
return response
|
39 |
|
40 |
if __name__ == '__main__':
|
|
|
34 |
loader = UnstructuredURLLoader(urls=[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="Please summarize the content of the article in 50 words in Chinese. 请用 50 个字的中文总结文章的内容")
|
39 |
return response
|
40 |
|
41 |
if __name__ == '__main__':
|