add async to auto_llama (#10)

This commit is contained in:
Jerry Liu
2023-04-18 00:13:46 -07:00
committed by GitHub
parent 4355c8c5f1
commit a5f93fac8e
+1 -1
View File
@@ -112,7 +112,7 @@ def download_web(url: str, doc_name: str, service_context: ServiceContext):
os.mkdir("data")
index.save_to_disk("data/" + doc_name + ".json")
summary = index.query(
"Summarize the contents of this web page.", response_mode="tree_summarize"
"Summarize the contents of this web page.", response_mode="tree_summarize", use_async=True
)
return summary.response