- Create a Virtual Environment using either Venv/ Conda
- Activate the Environment and run
pip install -r requirements.txt
-
PyTorch Library Installation:
- If PyTorch Installation fails via
requirements.txt, please visit the Official PyTorch Page and follow the installation instructions. It is recommended to install PyTorch without CUDA support.
- If PyTorch Installation fails via
-
Setting Up Secrets for Local Run:
-
Create a
secrets.tomlfile in the./streamlitdirectory within your project root folder. -
The structure of the
secrets.tomlfile should be as follows:[openai] api_key = "Your API KEY"
Replace
"Your API KEY"with your actual OpenAI API Key. This file will be used to store sensitive information securely within your project.
-
-
System Error Handling:
-
The system verifies if the uploaded file conforms to the required file structure, notifying businesses about any missing columns.
-
Automatically detecting file encodings, the system ensures that files are read based on these encodings.
-
Date columns are converted to the required date format by the system.
-
To prevent key errors caused by columns specified in different formats, the system standardizes all columns to lowercase.
streamlit run sentiment.py
-
- Download Flipkart Customer Product Reviews Data found in the
DatasetFolder. - Upload the Dataset to the sentiment Page to generate the Sentiment Scores and Overall Sentiments for each of the Customer Reviews.
- Download the Updated Reviews( e.g
Flipkart_updated_reviews_2019_11_01.csv) and store them Locally. - Upload the Updated Reviews to Business Recommendations Page to get actionable recommendations from
gpt3.5-turbomodel and ask follow-up questions. - Upload the Updated Reviews to Data Insights to generate Insights such as Product Vs Sentiment, Distribution of sentiments across the year etc.