Spaces:
Sleeping
Sleeping
chnages
Browse files- app/graph.py +9 -9
- app/main.py +3 -3
app/graph.py
CHANGED
|
@@ -47,12 +47,12 @@ builder.add_edge("tools", "roadmap_planning_agent")
|
|
| 47 |
graph = builder.compile()
|
| 48 |
|
| 49 |
|
| 50 |
-
try:
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
except Exception as e:
|
| 57 |
-
|
| 58 |
-
|
|
|
|
| 47 |
graph = builder.compile()
|
| 48 |
|
| 49 |
|
| 50 |
+
# try:
|
| 51 |
+
# # This creates a PNG and saves it to your project folder
|
| 52 |
+
# graph_png = graph.get_graph().draw_mermaid_png()
|
| 53 |
+
# with open("graph.png", "wb") as f:
|
| 54 |
+
# f.write(graph_png)
|
| 55 |
+
# print("--- Graph image saved as 'graph.png' ---")
|
| 56 |
+
# except Exception as e:
|
| 57 |
+
# # This happens if you don't have the 'pypydot' or 'graphviz' dependencies
|
| 58 |
+
# print(f"Could not generate graph image: {e}")
|
app/main.py
CHANGED
|
@@ -66,6 +66,6 @@ def health():
|
|
| 66 |
return {"status": "ok", "service": "Adaptive Onboarding Engine"}
|
| 67 |
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
| 66 |
return {"status": "ok", "service": "Adaptive Onboarding Engine"}
|
| 67 |
|
| 68 |
|
| 69 |
+
if __name__ == "__main__":
|
| 70 |
+
import uvicorn
|
| 71 |
+
uvicorn.run(app, host="127.0.0.1", port=8000)
|