pocketflow/cookbook/pocketflow-cmd-hitl/main.py

20 lines
456 B
Python

from flow import create_joke_flow
def main():
"""Main function to run the joke generator application."""
print("Welcome to the Command-Line Joke Generator!")
shared = {
"topic": None,
"current_joke": None,
"disliked_jokes": [],
"user_feedback": None
}
joke_flow = create_joke_flow()
joke_flow.run(shared)
print("\nThanks for using the Joke Generator!")
if __name__ == "__main__":
main()