eaglelandsonce commited on
Commit
7610aba
1 Parent(s): 508f887

Update pages/8_WebScrapper.py

Browse files
Files changed (1) hide show
  1. pages/8_WebScrapper.py +0 -30
pages/8_WebScrapper.py CHANGED
@@ -187,36 +187,6 @@ def main():
187
  return create_supervisor(llm, agents)
188
 
189
 
190
- workflow = StateGraph(AgentState)
191
- workflow.add_node(RESEARCHER, scraper_node)
192
- workflow.add_node(ANALYZER,Analyzer_node)
193
- workflow.add_node(EXPERT,Expert_node)
194
- workflow.add_node(SUPERVISOR, supervisor_node)
195
-
196
- workflow.add_edge(RESEARCHER, SUPERVISOR)
197
- workflow.add_edge(ANALYZER,SUPERVISOR)
198
- workflow.add_edge(EXPERT,SUPERVISOR)
199
- workflow.add_conditional_edges(
200
- SUPERVISOR,
201
- lambda x: x["next"],
202
- {
203
- RESEARCHER : RESEARCHER,
204
- ANALYZER: ANALYZER,
205
- EXPERT : EXPERT,
206
- "FINISH" : END
207
- }
208
- )
209
-
210
- workflow.set_entry_point(SUPERVISOR)
211
-
212
- graph = workflow.compile()
213
-
214
-
215
- for s in graph.stream({"messages": [HumanMessage(content=user_input)]}):
216
- if "__end__" not in s:
217
- st.write(s)
218
- st.write("-----")
219
-
220
  workflow = StateGraph(AgentState)
221
 
222
  workflow.add_node(RESEARCHER, scraper_node)
 
187
  return create_supervisor(llm, agents)
188
 
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  workflow = StateGraph(AgentState)
191
 
192
  workflow.add_node(RESEARCHER, scraper_node)