https://github.com/jiteshshelke/skincare-chatbot
https://github.com/jiteshshelke/skincare-chatbot
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jiteshshelke/skincare-chatbot
- Owner: JiteshShelke
- Created: 2025-03-31T05:33:00.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2025-03-31T05:54:35.000Z (about 1 month ago)
- Last Synced: 2025-03-31T06:28:29.898Z (about 1 month ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# πΏ SkinCare-Chatbot



## π₯ About the Project
**SkinCare-Chatbot** is an AI-powered chatbot that provides solutions to skin-related problems using **NLP & Machine Learning**. The chatbot uses **BERT-based sentence transformers** to understand user queries and return the most relevant answers. It also leverages **Named Entity Recognition (NER)** to extract important terms and expand queries for better accuracy. π## β¨ Features
- π€ **AI-Powered Query Matching** (Using `Sentence Transformers`)
- π **Named Entity Recognition (NER)** for extracting skin-related terms
- π **Synonym Expansion** using `WordNet`
- π **Semantic Similarity Matching**
- π₯ **Accurate Responses** for common skincare queries
- π **Related Questions Suggestion**
- π **Web Interface using Flask**## π Tech Stack
- **Flask** ποΈ (Backend Web Framework)
- **Pandas** πΌ (Data Processing)
- **NLP Libraries** π§
- `spaCy` (Named Entity Recognition)
- `Sentence Transformers` (BERT-based Model)
- `WordNet` (Synonyms Expansion)
- **HTML + CSS** π¨ (Frontend UI)
- **JavaScript** π (Client-side Interactions)## π Installation & Setup
### 1οΈβ£ Clone the Repository
```sh
git clone https://github.com/yourusername/SkinCare-Chatbot.git
cd SkinCare-Chatbot
```### 2οΈβ£ Create a Virtual Environment (Optional but Recommended)
```sh
python -m venv venv
source venv/bin/activate # For macOS/Linux
venv\Scripts\activate # For Windows
```### 3οΈβ£ Install Dependencies
```sh
pip install -r requirements.txt
```### 4οΈβ£ Download Required NLP Models
```sh
python -m spacy download en_core_web_sm
```### 5οΈβ£ Run the Flask Application
```sh
python app.py
```The chatbot will be available at: [http://127.0.0.1:5000](http://127.0.0.1:5000) π
## πΌ UI Preview
## π API Usage
### Endpoint: `/ask`
**Method:** `GET`
```sh
http://127.0.0.1:5000/ask?question=What+are+the+causes+of+acne?
```
**Response:**
```json
{
"answer": "Acne is caused by excess oil production, bacteria, and clogged hair follicles.",
"related_questions": [
"How can I prevent acne?",
"What are the treatments for acne?"
]
}
```## π€ Contribution Guidelines
Contributions are always welcome! Hereβs how you can help:
1. Fork the repository π΄
2. Create a new branch π (`git checkout -b feature-branch`)
3. Commit your changes πΎ (`git commit -m 'Added a new feature'`)
4. Push to your branch π (`git push origin feature-branch`)
5. Submit a pull request π## π License
This project is licensed under the **MIT License** π. See the [LICENSE](LICENSE) file for more details.## π¬ Contact
π© **Your Name**
π [GitHub](https://github.com/JiteshShelke/Jtxmaster)
π [LinkedIn](https://www.linkedin.com/in/jitesh-shelke-702745286/)---
π **Star this repo** if you like it! π