Zai commited on
Commit
eba1125
1 Parent(s): 6109c9e

starting the class

Browse files
.github/workflows/hugging-face.yaml CHANGED
@@ -22,7 +22,7 @@ jobs:
22
  tmp_file=$(mktemp)
23
  echo "---" >> $tmp_file
24
  echo "title: Agency" >> $tmp_file
25
- echo "emoji: 📈" >> $tmp_file
26
  echo "colorFrom: yellow" >> $tmp_file
27
  echo "colorTo: gray" >> $tmp_file
28
  echo "sdk: streamlit" >> $tmp_file
 
22
  tmp_file=$(mktemp)
23
  echo "---" >> $tmp_file
24
  echo "title: Agency" >> $tmp_file
25
+ echo "emoji: 🤝" >> $tmp_file
26
  echo "colorFrom: yellow" >> $tmp_file
27
  echo "colorTo: gray" >> $tmp_file
28
  echo "sdk: streamlit" >> $tmp_file
agency/__init__.py CHANGED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from .agency import Agency
2
+ # from .agents import
3
+ # from .tasks import
4
+ # from .utils import
agency/agency.py CHANGED
@@ -3,10 +3,22 @@ from langchain_community.llms import ollama
3
 
4
  class Agency:
5
  def __init__(self) -> None:
6
- agents = []
7
- tasks = []
 
 
 
 
 
 
 
8
 
9
  def run_tasks(self,task):
10
  pass
 
 
 
11
 
 
 
12
 
 
3
 
4
  class Agency:
5
  def __init__(self) -> None:
6
+ self.agents = []
7
+ self.tasks = []
8
+ self.results = None
9
+
10
+ def add_agent(self):
11
+ pass
12
+
13
+ def add_task(self):
14
+ pass
15
 
16
  def run_tasks(self,task):
17
  pass
18
+
19
+ def print_result(self):
20
+ pass
21
 
22
+ def save_result(self,file_name="file.txt"):
23
+ pass
24
 
agency/agents.py CHANGED
@@ -1 +1,2 @@
1
- # declare agents
 
 
1
+ # declare agents
2
+
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import streamlit as st
 
 
2
 
3
 
4
  def main():
 
5
  st.title("Agency xD")
6
 
7
  feature = st.sidebar.radio(
 
1
  import streamlit as st
2
+ from agency import Agency
3
+
4
 
5
 
6
  def main():
7
+ agency = Agency()
8
  st.title("Agency xD")
9
 
10
  feature = st.sidebar.radio(