Spaces:
Running
Running
ryefoxlime
commited on
Commit
β’
67c90cc
1
Parent(s):
99c3854
testing changes
Browse files- .env +2 -0
- db/chroma.sqlite3 +0 -0
- src/{gui/app.py β app.py} +4 -3
- src/research_agent/__pycache__/__init__.cpython-311.pyc +0 -0
- src/research_agent/__pycache__/crew.cpython-311.pyc +0 -0
- src/research_agent/crew.py +2 -3
- src/research_agent/tools/__pycache__/tool.cpython-311.pyc +0 -0
- src/research_agent/tools/tool.py +1 -1
.env
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
SERPER_API_KEY=''
|
2 |
+
GOOGLE_API_KEY=''
|
db/chroma.sqlite3
ADDED
Binary file (147 kB). View file
|
|
src/{gui/app.py β app.py}
RENAMED
@@ -1,10 +1,11 @@
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
-
from
|
3 |
import streamlit as st
|
4 |
from crewai import Crew, Process
|
5 |
-
from tools import tool
|
6 |
import os
|
7 |
-
|
8 |
# Configure the Streamlit page
|
9 |
st.set_page_config(page_title="CrewAI Article Generator", page_icon="π", layout="wide")
|
10 |
|
|
|
1 |
+
#gui/app.py
|
2 |
+
import sys
|
3 |
import streamlit as st
|
4 |
+
from research_agent.crew import MarketUseCaseCrew
|
5 |
import streamlit as st
|
6 |
from crewai import Crew, Process
|
|
|
7 |
import os
|
8 |
+
sys.path.append('..')
|
9 |
# Configure the Streamlit page
|
10 |
st.set_page_config(page_title="CrewAI Article Generator", page_icon="π", layout="wide")
|
11 |
|
src/research_agent/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (161 Bytes). View file
|
|
src/research_agent/__pycache__/crew.cpython-311.pyc
ADDED
Binary file (5.97 kB). View file
|
|
src/research_agent/crew.py
CHANGED
@@ -1,11 +1,10 @@
|
|
|
|
1 |
from crewai import Agent, Crew, Process, Task, LLM
|
2 |
-
from crewai.tasks.task_output import TaskOutput
|
3 |
from crewai.project import CrewBase, agent, crew, task
|
4 |
from tools.tool import search_tool, website_search_tool,pdf_search_tool
|
5 |
import streamlit as st
|
6 |
import os
|
7 |
-
|
8 |
-
|
9 |
def streamlit_callback(step_output):
|
10 |
"""Callback function to display step output in Streamlit."""
|
11 |
st.markdown("---")
|
|
|
1 |
+
import sys
|
2 |
from crewai import Agent, Crew, Process, Task, LLM
|
|
|
3 |
from crewai.project import CrewBase, agent, crew, task
|
4 |
from tools.tool import search_tool, website_search_tool,pdf_search_tool
|
5 |
import streamlit as st
|
6 |
import os
|
7 |
+
sys.path.append('..')
|
|
|
8 |
def streamlit_callback(step_output):
|
9 |
"""Callback function to display step output in Streamlit."""
|
10 |
st.markdown("---")
|
src/research_agent/tools/__pycache__/tool.cpython-311.pyc
CHANGED
Binary files a/src/research_agent/tools/__pycache__/tool.cpython-311.pyc and b/src/research_agent/tools/__pycache__/tool.cpython-311.pyc differ
|
|
src/research_agent/tools/tool.py
CHANGED
@@ -4,7 +4,7 @@ from dotenv import load_dotenv
|
|
4 |
load_dotenv()
|
5 |
|
6 |
search_tool = SerperDevTool(
|
7 |
-
serper_api_key=os.
|
8 |
)
|
9 |
|
10 |
website_search_tool = WebsiteSearchTool(
|
|
|
4 |
load_dotenv()
|
5 |
|
6 |
search_tool = SerperDevTool(
|
7 |
+
serper_api_key=os.environ['SERPER_API_KEY']
|
8 |
)
|
9 |
|
10 |
website_search_tool = WebsiteSearchTool(
|