Spaces:
Build error
Build error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,62 +1,14 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
1. Clone the repository:
|
| 16 |
-
git clone https://github.com/yourusername/mybot.git
|
| 17 |
-
cd mybot
|
| 18 |
-
2. Create a virtual environment and activate it:
|
| 19 |
-
python -m venv venv
|
| 20 |
-
source venv/bin/activate # On Windows use `venv\Scripts\activate`
|
| 21 |
-
3. Install the required dependencies:
|
| 22 |
-
pip install -r requirements.txt
|
| 23 |
-
4. Create a `.env` file and add your environment variables:
|
| 24 |
-
AZURE_OPENAI_API_KEY=your_openai_api_key
|
| 25 |
-
AZURE_OPENAI_ENDPOINT=your_openai_endpoint
|
| 26 |
-
LUIS_ENDPOINT=your_luis_endpoint
|
| 27 |
-
LUIS_API_VERSION=your_luis_api_version
|
| 28 |
-
LUIS_API_KEY=your_luis_api_key
|
| 29 |
-
5. Run the bot:
|
| 30 |
-
python main.py## Usage
|
| 31 |
-
|
| 32 |
-
- Interact with the bot by sending messages.
|
| 33 |
-
- The bot will generate responses from different perspectives and provide insightful answers.
|
| 34 |
-
- You can customize the enabled perspectives in the `config.json` file.
|
| 35 |
-
|
| 36 |
-
## Configuration
|
| 37 |
-
|
| 38 |
-
The bot uses a configuration file (`config.json`) to manage settings. Ensure that the configuration file is valid by using the provided schema (`config_schema.json`).
|
| 39 |
-
|
| 40 |
-
## Contributing
|
| 41 |
-
|
| 42 |
-
Contributions are welcome! Please open an issue or submit a pull request.
|
| 43 |
-
|
| 44 |
-
## License
|
| 45 |
-
|
| 46 |
-
This project is licensed under the MIT License.
|
| 47 |
-
# MyBot
|
| 48 |
-
|
| 49 |
-
MyBot is an intelligent chatbot built using the BotBuilder framework. It leverages various perspectives to generate insightful responses and enhance user interactions.
|
| 50 |
-
|
| 51 |
-
## Features
|
| 52 |
-
|
| 53 |
-
- **Multiple Perspectives**: Generates responses from different perspectives such as Newton, Da Vinci, Human Intuition, Neural Network, Quantum Computing, and more.
|
| 54 |
-
- **Sentiment Analysis**: Analyzes user sentiment using VADER and TextBlob.
|
| 55 |
-
- **Context Awareness**: Enhances context awareness by analyzing the user's environment, activities, and emotional state.
|
| 56 |
-
- **Ethical Decision Making**: Integrates ethical principles into decision-making processes.
|
| 57 |
-
- **Transparency and Explainability**: Provides transparency by explaining the reasoning behind decisions.
|
| 58 |
-
- **Dialog Management**: Manages conversations using the BotBuilder Dialog framework.
|
| 59 |
-
|
| 60 |
-
## Installation
|
| 61 |
-
|
| 62 |
-
1. Clone the repository:
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Chat
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.0.1
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: chat
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|