大家好:我希望只要点击按钮cell运行,否则不运行。但因为(prompt_files.path()这个file_browser的值一变就运行了,原来结果就没保留了 #9271
Closed
WalkCharlie
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
prompt_exists = prompt_files.name() is not None
single = len(prompt_files.value) == 1
mo.stop(not one_report.value,
# mo.md("选择提示词文件后点击生成报告"),
)
ragtasks = [rag(**task) for task in get_rag_tasks(prompt_files.path(index=-1))]
rag_outputs = await asyncio.gather(*ragtasks)
report = pd.DataFrame(rag_outputs, columns=["task", "reply", "context"])
report
Beta Was this translation helpful? Give feedback.
All reactions