Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,13 +61,11 @@ graph = workflow.compile()
|
|
61 |
|
62 |
# Define the function to run the graph
|
63 |
def run_langgraph(user_input):
|
64 |
-
# Start with user input
|
65 |
events = graph.stream(
|
66 |
{"messages": [("user", user_input)]},
|
67 |
{"recursion_limit": 150}
|
68 |
)
|
69 |
|
70 |
-
# Collect outputs from the workflow
|
71 |
final_message = None
|
72 |
for event in events:
|
73 |
if "messages" in event and event["messages"]:
|
|
|
61 |
|
62 |
# Define the function to run the graph
|
63 |
def run_langgraph(user_input):
|
|
|
64 |
events = graph.stream(
|
65 |
{"messages": [("user", user_input)]},
|
66 |
{"recursion_limit": 150}
|
67 |
)
|
68 |
|
|
|
69 |
final_message = None
|
70 |
for event in events:
|
71 |
if "messages" in event and event["messages"]:
|