Spaces:
Running
Running
updates
Browse files
app.py
CHANGED
@@ -84,10 +84,8 @@ def create_tools(cfg):
|
|
84 |
ask_transcripts = tools_factory.create_rag_tool(
|
85 |
tool_name = "ask_transcripts",
|
86 |
tool_description = """
|
87 |
-
Given a company name and year,
|
88 |
-
returns a response (str) to a user question about a company, based on analyst call transcripts about the company's financial reports for that year.
|
89 |
You can ask this tool any question about the compaany including risks, opportunities, financial performance, competitors and more.
|
90 |
-
make sure to provide a valid company ticker and year.
|
91 |
""",
|
92 |
tool_args_schema = QueryTranscriptsArgs,
|
93 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
@@ -166,7 +164,7 @@ def launch_bot():
|
|
166 |
# left side content
|
167 |
with st.sidebar:
|
168 |
image = Image.open('Vectara-logo.png')
|
169 |
-
st.image(image, width=
|
170 |
st.markdown("## Welcome to the financial assistant demo.\n\n\n")
|
171 |
companies = ", ".join(tickers.values())
|
172 |
st.markdown(
|
|
|
84 |
ask_transcripts = tools_factory.create_rag_tool(
|
85 |
tool_name = "ask_transcripts",
|
86 |
tool_description = """
|
87 |
+
Given a company name and year, response to a user question about the company, based on analyst call transcripts about the company's financial reports for that year.
|
|
|
88 |
You can ask this tool any question about the compaany including risks, opportunities, financial performance, competitors and more.
|
|
|
89 |
""",
|
90 |
tool_args_schema = QueryTranscriptsArgs,
|
91 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
|
|
164 |
# left side content
|
165 |
with st.sidebar:
|
166 |
image = Image.open('Vectara-logo.png')
|
167 |
+
st.image(image, width=175)
|
168 |
st.markdown("## Welcome to the financial assistant demo.\n\n\n")
|
169 |
companies = ", ".join(tickers.values())
|
170 |
st.markdown(
|