Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -334,8 +334,12 @@ class DocumentRAG:
|
|
| 334 |
["story_generator"])
|
| 335 |
graph.add_edge("story_generator", END)
|
| 336 |
|
|
|
|
| 337 |
compiled = graph.compile(checkpointer=MemorySaver())
|
| 338 |
-
|
|
|
|
|
|
|
|
|
|
| 339 |
return result
|
| 340 |
|
| 341 |
|
|
|
|
| 334 |
["story_generator"])
|
| 335 |
graph.add_edge("story_generator", END)
|
| 336 |
|
| 337 |
+
|
| 338 |
compiled = graph.compile(checkpointer=MemorySaver())
|
| 339 |
+
thread = {"configurable": {"thread_id": "storygraph-session"}}
|
| 340 |
+
|
| 341 |
+
result = compiled.invoke({"topic": [topic], "context": [context]}, thread)
|
| 342 |
+
|
| 343 |
return result
|
| 344 |
|
| 345 |
|