Spaces:
Running
Running
python 3.11 and updated companies
Browse files- Dockerfile +1 -1
- agent.py +5 -1
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
1 |
+
FROM python:3.11
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
agent.py
CHANGED
@@ -24,6 +24,10 @@ tickers = {
|
|
24 |
"AMD": "Advanced Micro Devices",
|
25 |
"INTC": "Intel",
|
26 |
"NFLX": "Netflix",
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
years = [2020, 2021, 2022, 2023, 2024]
|
29 |
initial_prompt = "How can I help you today?"
|
@@ -141,7 +145,7 @@ def get_agent_config() -> OmegaConf:
|
|
141 |
'api_key': str(os.environ['VECTARA_API_KEY']),
|
142 |
'examples': os.environ.get('QUERY_EXAMPLES', None),
|
143 |
'demo_name': "finance-chat",
|
144 |
-
'demo_welcome': "
|
145 |
'demo_description': f"This assistant can help you with any questions about the financials of several companies:\n\n **{companies}**.\n"
|
146 |
})
|
147 |
return cfg
|
|
|
24 |
"AMD": "Advanced Micro Devices",
|
25 |
"INTC": "Intel",
|
26 |
"NFLX": "Netflix",
|
27 |
+
"JPM": "JPMorgan Chase",
|
28 |
+
"STT": "State Street",
|
29 |
+
"BK": "Bank of New York Mellon",
|
30 |
+
"C": "Citigroup",
|
31 |
}
|
32 |
years = [2020, 2021, 2022, 2023, 2024]
|
33 |
initial_prompt = "How can I help you today?"
|
|
|
145 |
'api_key': str(os.environ['VECTARA_API_KEY']),
|
146 |
'examples': os.environ.get('QUERY_EXAMPLES', None),
|
147 |
'demo_name': "finance-chat",
|
148 |
+
'demo_welcome': "Financial Assistant demo.",
|
149 |
'demo_description': f"This assistant can help you with any questions about the financials of several companies:\n\n **{companies}**.\n"
|
150 |
})
|
151 |
return cfg
|