mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 16:40:32 +08:00
16 lines
369 B
Python
16 lines
369 B
Python
|
|
from flow import qa_flow
|
||
|
|
|
||
|
|
# Example main function
|
||
|
|
# Please replace this with your own main function
|
||
|
|
def main():
|
||
|
|
shared = {
|
||
|
|
"question": "In one sentence, what's the end of universe?",
|
||
|
|
"answer": None
|
||
|
|
}
|
||
|
|
|
||
|
|
qa_flow.run(shared)
|
||
|
|
print("Question:", shared["question"])
|
||
|
|
print("Answer:", shared["answer"])
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|