YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Chatbot
Overview
This is a simple chatbot that interacts with users via the command line. It is built using Python and can be installed and run as a standalone package.
Features
- Interactive chatbot interface
- Easy installation and execution
- Modular design for easy customization
Installation
Clone the repository
git clone https://github.com/ugaurav/chatbot.git cd chatbotInstall dependencies
pip install -r requirements.txtInstall the package in editable mode
pip install -e .
Usage
Running the Chatbot
After installation, you can start the chatbot using:
chatbot-interact
Manual Execution
Alternatively, you can run the script directly:
python chatbot/interact.py
Development
Project Structure
chatbot/
βββ chatbot/
β βββ __init__.py
β βββ interact.py
β βββ train.py
βββ setup.py
βββ requirements.txt
βββ README.md
Entry Point Fix
Ensure your setup.py has a correct entry point:
entry_points={
"console_scripts": [
"chatbot-interact=chatbot.interact:main"
]
}
And inside chatbot/interact.py, define a main() function:
def main():
chatbot = Chatbot()
chatbot.chat()
if __name__ == "__main__":
main()
Troubleshooting
- If the
chatbot-interactcommand is not found, try:python -m chatbot.interact - If installation fails, ensure you are in the correct environment and have
pipupdated:python -m pip install --upgrade pip
License
This project is licensed under the MIT License.
Author
Gaurav Upadhyay
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support