From 9874642e9bb6f825c0151e2011265d937a39732a Mon Sep 17 00:00:00 2001 From: jjyaoao Date: Tue, 18 Mar 2025 14:01:42 +0000 Subject: [PATCH] fix run.py demo --- examples/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/run.py b/examples/run.py index 60a118c..bec1a6c 100644 --- a/examples/run.py +++ b/examples/run.py @@ -135,7 +135,9 @@ def main(): # Construct and run the society society = construct_society(question) - answer, chat_history, token_count = run_society(society) + + import asyncio + answer, chat_history, token_count = asyncio.run(run_society(society)) # Output the result print(f"\033[94mAnswer: {answer}\033[0m")