Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,8 +49,7 @@ def create_langgraph_agent():
|
|
| 49 |
graph.add_edge("tools", "agent")
|
| 50 |
|
| 51 |
# 6. Graafin kääntäminen ja turvarajan asettaminen
|
| 52 |
-
|
| 53 |
-
+ app = graph.compile()
|
| 54 |
print("LangGraph agent compiled and ready.")
|
| 55 |
return app
|
| 56 |
|
|
@@ -133,4 +132,4 @@ with gr.Blocks() as demo:
|
|
| 133 |
run_button.click(fn=run_and_submit_all, outputs=[status_output, results_table])
|
| 134 |
|
| 135 |
if __name__ == "__main__":
|
| 136 |
-
demo.launch()
|
|
|
|
| 49 |
graph.add_edge("tools", "agent")
|
| 50 |
|
| 51 |
# 6. Graafin kääntäminen ja turvarajan asettaminen
|
| 52 |
+
app = graph.compile() # recursion_limit poistettu compile-kutsusta
|
|
|
|
| 53 |
print("LangGraph agent compiled and ready.")
|
| 54 |
return app
|
| 55 |
|
|
|
|
| 132 |
run_button.click(fn=run_and_submit_all, outputs=[status_output, results_table])
|
| 133 |
|
| 134 |
if __name__ == "__main__":
|
| 135 |
+
demo.launch()
|