Skier8402 commited on
Commit
d20048e
·
verified ·
1 Parent(s): 4f346b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -23,7 +23,7 @@ st.markdown(
23
  st.markdown(
24
  "The goal of this demo is to show how you can use the [CrewAI](https://crewai.co/) framework to create a blog editor agent that can help you edit your blog posts. The agent is composed of two agents: a researcher and an editor. The researcher is responsible for conducting research and fact-checking the information provided in the blog post. The editor is responsible for editing the blog post and making sure it is clear, coherent, and impactful."
25
  )
26
-
27
 
28
  # Retrieve API Key from Environment Variable
29
  # setup sidebar: models to choose from and API key input
@@ -58,13 +58,6 @@ else:
58
  allow_delegation=False,
59
  tools=[search_tool],
60
  llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
61
- # You can pass an optional llm attribute specifying what mode you wanna use.
62
- # It can be a local model through Ollama / LM Studio or a remote
63
- # model like OpenAI, Mistral, Antrophic of others (https://python.langchain.com/docs/integrations/llms/)
64
- #
65
- # Examples:
66
- # llm=ollama_llm # was defined above in the file
67
- # llm=ChatOpenAI(model_name="gpt-3.5", temperature=0.7)
68
  )
69
  researcher = Agent(
70
  role="Article Researcher",
@@ -77,7 +70,6 @@ else:
77
  allow_delegation=True,
78
  tools=[search_tool],
79
  llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
80
- # (optional) llm=ollama_llm
81
  )
82
 
83
  # Create tasks for your agents
 
23
  st.markdown(
24
  "The goal of this demo is to show how you can use the [CrewAI](https://crewai.co/) framework to create a blog editor agent that can help you edit your blog posts. The agent is composed of two agents: a researcher and an editor. The researcher is responsible for conducting research and fact-checking the information provided in the blog post. The editor is responsible for editing the blog post and making sure it is clear, coherent, and impactful."
25
  )
26
+ st.markdown("Click on the icon 🖱️ Logs to see how the agents are making the decisions.")
27
 
28
  # Retrieve API Key from Environment Variable
29
  # setup sidebar: models to choose from and API key input
 
58
  allow_delegation=False,
59
  tools=[search_tool],
60
  llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
 
 
 
 
 
 
 
61
  )
62
  researcher = Agent(
63
  role="Article Researcher",
 
70
  allow_delegation=True,
71
  tools=[search_tool],
72
  llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
 
73
  )
74
 
75
  # Create tasks for your agents