Spaces:
Running
Running
bugfix
Browse files
app.py
CHANGED
@@ -6,13 +6,14 @@ from PIL import Image
|
|
6 |
import sys
|
7 |
import pandas as pd
|
8 |
import requests
|
|
|
9 |
from dotenv import load_dotenv
|
|
|
10 |
|
11 |
from pydantic import Field, BaseModel
|
12 |
from vectara_agent.agent import Agent, AgentStatusType
|
13 |
from vectara_agent.tools import ToolsFactory
|
14 |
|
15 |
-
|
16 |
tickers = {
|
17 |
"AAPL": "Apple Computer",
|
18 |
"GOOG": "Google",
|
@@ -29,8 +30,6 @@ tickers = {
|
|
29 |
years = [2020, 2021, 2022, 2023, 2024]
|
30 |
initial_prompt = "How can I help you today?"
|
31 |
|
32 |
-
load_dotenv(override=True)
|
33 |
-
|
34 |
def create_tools(cfg):
|
35 |
|
36 |
def get_company_info() -> list[str]:
|
|
|
6 |
import sys
|
7 |
import pandas as pd
|
8 |
import requests
|
9 |
+
|
10 |
from dotenv import load_dotenv
|
11 |
+
load_dotenv(override=True)
|
12 |
|
13 |
from pydantic import Field, BaseModel
|
14 |
from vectara_agent.agent import Agent, AgentStatusType
|
15 |
from vectara_agent.tools import ToolsFactory
|
16 |
|
|
|
17 |
tickers = {
|
18 |
"AAPL": "Apple Computer",
|
19 |
"GOOG": "Google",
|
|
|
30 |
years = [2020, 2021, 2022, 2023, 2024]
|
31 |
initial_prompt = "How can I help you today?"
|
32 |
|
|
|
|
|
33 |
def create_tools(cfg):
|
34 |
|
35 |
def get_company_info() -> list[str]:
|