Update app.py
Browse files
app.py
CHANGED
@@ -8,18 +8,18 @@ openai.api_key = os.getenv("API_KEY")
|
|
8 |
openai.api_base = "https://api.groq.com/openai/v1"
|
9 |
|
10 |
# Import datasets from the Python files in your project
|
11 |
-
from
|
12 |
-
from
|
13 |
-
from
|
14 |
-
from
|
15 |
-
from
|
16 |
-
from
|
17 |
-
from
|
18 |
-
from
|
19 |
-
from
|
20 |
-
from
|
21 |
-
from
|
22 |
-
from
|
23 |
|
24 |
# Command handler for specific queries
|
25 |
def command_handler(user_input):
|
@@ -88,6 +88,14 @@ def market_analysis_agent(user_input, history=[]):
|
|
88 |
response = investors
|
89 |
elif "products" in user_input.lower():
|
90 |
response = products_services
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
elif "workforce" in user_input.lower():
|
92 |
response = workforce
|
93 |
else:
|
|
|
8 |
openai.api_base = "https://api.groq.com/openai/v1"
|
9 |
|
10 |
# Import datasets from the Python files in your project
|
11 |
+
from company_profile import company_profile
|
12 |
+
from workforce import workforce
|
13 |
+
from financials import financials
|
14 |
+
from investors import investors
|
15 |
+
from products_services import products_services
|
16 |
+
from market_trends import market_trends
|
17 |
+
from partnerships_collaborations import partnerships_collaborations
|
18 |
+
from legal_compliance import legal_compliance
|
19 |
+
from customer_insights import customer_insights
|
20 |
+
from news_updates import news_updates
|
21 |
+
from social_media import social_media
|
22 |
+
from tech_stack import tech_stack
|
23 |
|
24 |
# Command handler for specific queries
|
25 |
def command_handler(user_input):
|
|
|
88 |
response = investors
|
89 |
elif "products" in user_input.lower():
|
90 |
response = products_services
|
91 |
+
elif "news" or "updates" in user_input.lower():
|
92 |
+
response = news_updates
|
93 |
+
elif "legal" or "compliance" in user_input.lower():
|
94 |
+
response = legal_compliance
|
95 |
+
elif "social media" or "instagram" or "linkedin" or "twitter" in user_input.lower():
|
96 |
+
response = social_media
|
97 |
+
elif "product" or "services" in user_input.lower():
|
98 |
+
response = products_services
|
99 |
elif "workforce" in user_input.lower():
|
100 |
response = workforce
|
101 |
else:
|