mrhenu commited on
Commit
418a9d3
·
verified ·
1 Parent(s): 0b13750

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- - app = graph.compile(recursion_limit=15)
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()