Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ class AgentLoader:
|
|
100 |
)
|
101 |
return agent
|
102 |
|
103 |
-
def fileReaderAgent(path):
|
104 |
FileReader = Agent(
|
105 |
role='File searcher',
|
106 |
goal='To analyse and generate optimal and reliable results',
|
@@ -114,7 +114,7 @@ class AgentLoader:
|
|
114 |
)
|
115 |
return FileReader
|
116 |
|
117 |
-
def PdfReaderAgent(path):
|
118 |
PdfReader = Agent(
|
119 |
role='PDF searcher',
|
120 |
goal='To analyse and generate optimal and reliable results',
|
@@ -128,7 +128,7 @@ class AgentLoader:
|
|
128 |
)
|
129 |
return PdfReader
|
130 |
|
131 |
-
def DocsReaderAgent(path):
|
132 |
DocsReader = Agent(
|
133 |
role='Docs searcher',
|
134 |
goal='To analyse and generate optimal and reliable results',
|
@@ -142,7 +142,7 @@ class AgentLoader:
|
|
142 |
)
|
143 |
return DocsReader
|
144 |
|
145 |
-
def writerAgent():
|
146 |
writer=Agent(
|
147 |
role='Content Writer',
|
148 |
goal='To produce higly accurate and easy to understand information',
|
|
|
100 |
)
|
101 |
return agent
|
102 |
|
103 |
+
async def fileReaderAgent(path):
|
104 |
FileReader = Agent(
|
105 |
role='File searcher',
|
106 |
goal='To analyse and generate optimal and reliable results',
|
|
|
114 |
)
|
115 |
return FileReader
|
116 |
|
117 |
+
async def PdfReaderAgent(path):
|
118 |
PdfReader = Agent(
|
119 |
role='PDF searcher',
|
120 |
goal='To analyse and generate optimal and reliable results',
|
|
|
128 |
)
|
129 |
return PdfReader
|
130 |
|
131 |
+
async def DocsReaderAgent(path):
|
132 |
DocsReader = Agent(
|
133 |
role='Docs searcher',
|
134 |
goal='To analyse and generate optimal and reliable results',
|
|
|
142 |
)
|
143 |
return DocsReader
|
144 |
|
145 |
+
async def writerAgent():
|
146 |
writer=Agent(
|
147 |
role='Content Writer',
|
148 |
goal='To produce higly accurate and easy to understand information',
|