mirror of
https://github.com/run-llama/llama-lab.git
synced 2026-07-01 20:14:02 -04:00
add async to auto_llama (#10)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user