Spaces:
Runtime error
Runtime error
Download src/genai/human_refined_ideation/agent.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/src/genai/human_refined_ideation/agent.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions/src/genai/human_refined_ideation/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/src/genai/human_refined_ideation/agent.py
464 Bytes
| from langgraph.graph import StateGraph, START, END , MessagesState | |
| from langgraph.checkpoint.memory import MemorySaver | |
| from .utils.nodes import run_refiner | |
| from .utils.state import State | |
| memory = MemorySaver() | |
| def human_refined_idea(): | |
| graph_builder= StateGraph(State) | |
| graph_builder.add_node(run_refiner) | |
| graph_builder.add_edge(START, "run_refiner") | |
| graph_builder.add_edge("run_refiner",END) | |
| return graph_builder.compile(checkpointer=memory) | |