Access our Streamlit app here
This Streamlit application provides a comprehensive financial analysis tool for Alcon and its competitors. It offers various features including financial data visualization, a chatbot for queries, and configuration management.
-
Financial Data Visualization
-
Configuration Management
-
Clone the repository:
git clone [repository-url]
-
Navigate to the project directory:
cd [project-directory]
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS and Linux:
source .venv/bin/activate
- On Windows:
-
Install required dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file in the root directory - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the Streamlit app:
streamlit run app.py
-
Navigate through different sections using the sidebar:
- Income Statement
- Balance Sheet
- Cash Flow
- Chatbot
- Configs
-
In the visualization sections, you can:
- Select specific companies for comparison
- Choose between annual and quarterly data
- Create custom charts using Plotly or Pygwalker
-
Use the Chatbot for financial queries related to the loaded data
-
In the Configs section, you can:
- Add or remove ticker symbols
- Run the ETL pipeline to update data
- Populate the vector database for improved chatbot responses
The application uses financial data stored in CSV files:
annually_income_statement.csv
annually_balance_sheet.csv
annually_cash_flow.csv
quarterly_income_statement.csv
quarterly_balance_sheet.csv
quarterly_cash_flow.csv
- Streamlit
- OpenAI
- LangChain
- Pandas
- Plotly
- Pygwalker
- Chroma
You can modify the config.py
file to change the list of tracked tickers and update the color theme for visualizations.
Ensure that you have the necessary permissions and comply with the terms of service for all data sources and APIs used in this application.