Spaces:
Build error
Build error
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,82 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
# Geography Knowledge Chatbot
|
| 14 |
+
|
| 15 |
+
Welcome to the Geography Knowledge Chatbot! This Streamlit app utilizes Groq AI to answer your geography-related questions and provide insights into geographical facts.
|
| 16 |
+
|
| 17 |
+
## Project Overview
|
| 18 |
+
|
| 19 |
+
This project consists of a Streamlit app with two main pages:
|
| 20 |
+
- **Home Page**: Provides an introduction to the chatbot and information about the team.
|
| 21 |
+
- **Chatbot Page**: Allows users to ask geography-related questions and receive responses from the Groq AI.
|
| 22 |
+
|
| 23 |
+
## Features
|
| 24 |
+
|
| 25 |
+
- **Home Page**:
|
| 26 |
+
- Displays a welcome message.
|
| 27 |
+
- Showcases the team members with their images and IDs.
|
| 28 |
+
- Provides a button to navigate to the chatbot page.
|
| 29 |
+
|
| 30 |
+
- **Chatbot Page**:
|
| 31 |
+
- Allows users to input geography-related questions.
|
| 32 |
+
- Displays conversation history.
|
| 33 |
+
- Uses Groq AI to generate responses based on user input.
|
| 34 |
+
|
| 35 |
+
## Installation
|
| 36 |
+
|
| 37 |
+
To run this project locally, follow these steps:
|
| 38 |
+
|
| 39 |
+
1. **Clone the repository**:
|
| 40 |
+
```bash
|
| 41 |
+
git clone https://github.com/mldatascientist23/Generative_AI_Projects/geography_bot.git
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
2. **Navigate to the project directory**:
|
| 45 |
+
```bash
|
| 46 |
+
cd geography-chatbot
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
3. **Install dependencies**:
|
| 50 |
+
Make sure you have `pip` installed, then run:
|
| 51 |
+
```bash
|
| 52 |
+
pip install -r requirements.txt
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
4. **Set up secrets**:
|
| 56 |
+
Create a `.streamlit/secrets.toml` file in the root directory and add your Groq API key:
|
| 57 |
+
```toml
|
| 58 |
+
[default]
|
| 59 |
+
GROQ_API_KEY = "your_groq_api_key_here"
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
5. **Run the Streamlit app**:
|
| 63 |
+
```bash
|
| 64 |
+
streamlit run app.py
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Usage
|
| 68 |
+
|
| 69 |
+
- **Home Page**: View the team details and navigate to the chatbot page.
|
| 70 |
+
- **Chatbot Page**: Enter your geography-related questions in the input field and press "Submit" to receive answers.
|
| 71 |
+
|
| 72 |
+
## Contributing
|
| 73 |
+
|
| 74 |
+
If you'd like to contribute to this project, please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding style and includes relevant tests.
|
| 75 |
+
|
| 76 |
+
## License
|
| 77 |
+
|
| 78 |
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
| 79 |
+
|
| 80 |
+
## Acknowledgements
|
| 81 |
+
|
| 82 |
+
- **Groq AI**: For providing the AI service used in this project.
|
| 83 |
+
- **Streamlit**: For making it easy to create and deploy interactive web apps.
|
| 84 |
+
|
| 85 |
+
## Contact
|
| 86 |
+
|
| 87 |
+
For any questions or feedback, please contact:
|
| 88 |
+
|
| 89 |
+
- **Saad Asghar Ali** - [your-email@example.com](mailto:your-email@example.com)
|
| 90 |
+
- **Hamesh Raj** - [hm.raisingani@gmail.com](mailto:your-email@example.com)
|
| 91 |
+
- **Mir khalil ur Rehman** - [your-email@example.com](mailto:your-email@example.com)
|