Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def process_file(file, query, expected_output):
|
|
| 182 |
agent = AgentLoader.fileReaderAgent(path)
|
| 183 |
elif path.endswith(".csv"):
|
| 184 |
agent = AgentLoader.csvReaderAgent(path)
|
| 185 |
-
|
| 186 |
else:
|
| 187 |
return 'File NOT supported'
|
| 188 |
|
|
|
|
| 182 |
agent = AgentLoader.fileReaderAgent(path)
|
| 183 |
elif path.endswith(".csv"):
|
| 184 |
agent = AgentLoader.csvReaderAgent(path)
|
| 185 |
+
return agent.run(query)
|
| 186 |
else:
|
| 187 |
return 'File NOT supported'
|
| 188 |
|