This Streamlit application provides a platform for managing restaurant complaints and feedback. It offers functionalities for both customers to submit reviews and restaurant owners to analyze complaint data.
- Submit reviews/complaints
- Automatic sentiment analysis of reviews
- Multi-label categorization of complaints
- Generation of auto-responses based on the complaint
- View complaint statistics for a specified number of days
- Analyze complaint categories and their frequencies
- Access detailed review information
- Python
- Streamlit
- Pandas
- TensorFlow
- Transformers (BERT)
- TextBlob
- MySQL
-
Clone the repository
-
Install the required packages:
-
Set up a MySQL database named 'restaurant_review'
-
Update the database connection details in the script
Run the Streamlit app using:
$:streamlit run main.py
- Select user type (Customer or Restaurant Owner) from the sidebar
- For Customers:
- Enter your review in the text area
- Click 'Submit Review' to process and save your feedback
- For Restaurant Owners:
- Enter the number of days for which you want to view complaint data
- Click 'Get Complaint Info' to view statistics and detailed review information
- The application uses a pre-trained BERT model for multi-label classification
- Ensure that the model weights ('tf_model.h5') and the dataset ('last.csv') are present in the same directory as the script
- The sentiment analysis and categorization are performed automatically
- The application connects to a MySQL database to store and retrieve review data
- Implement user authentication
- Add more detailed analytics for restaurant owners
- Enhance the auto-response generation system