Spaces:
Sleeping
Sleeping
Create app/main.py
Browse files- app/main.py +14 -0
app/main.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Import the FarmFreshAgent class
|
2 |
+
from agent.farmfresh_agent import FarmFreshAgent
|
3 |
+
|
4 |
+
# Initialize the FarmFreshAgent
|
5 |
+
farm_agent = FarmFreshAgent()
|
6 |
+
|
7 |
+
# Example query for the agent
|
8 |
+
query = "What are the latest trends in organic farming?"
|
9 |
+
|
10 |
+
# Run the agent with the query
|
11 |
+
response = farm_agent.run_query(query)
|
12 |
+
|
13 |
+
# Print out the response
|
14 |
+
print(response)
|