Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -397,7 +397,7 @@ from langgraph.graph import END, StateGraph, START
|
|
| 397 |
|
| 398 |
def create_workflow() -> StateGraph:
|
| 399 |
"""Creates the updated workflow for the AI nutrition agent."""
|
| 400 |
-
workflow = StateGraph(
|
| 401 |
|
| 402 |
# Add processing nodes
|
| 403 |
workflow.add_node("expand_query", expand_query ) # Step 1: Expand user query. Complete with the function to expand the query
|
|
|
|
| 397 |
|
| 398 |
def create_workflow() -> StateGraph:
|
| 399 |
"""Creates the updated workflow for the AI nutrition agent."""
|
| 400 |
+
workflow = StateGraph(AgentState) # Complete the code to define the initial state of the agent
|
| 401 |
|
| 402 |
# Add processing nodes
|
| 403 |
workflow.add_node("expand_query", expand_query ) # Step 1: Expand user query. Complete with the function to expand the query
|