Downloads · 30 days
0
ugaurav/chatbot_r1
chatbot_r1 is a machine learning model from ugaurav. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
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.
Downloads · 30 days
0
Access
Public
Updated Feb 25, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py4.7 KB · 55%
From the Hugging Face model README
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.
Clone the repository
git clone https://github.com/ugaurav/chatbot.git
cd chatbot
Install dependencies
pip install -r requirements.txt
Install the package in editable mode
pip install -e .
After installation, you can start the chatbot using:
chatbot-interact
Alternatively, you can run the script directly:
python chatbot/interact.py
chatbot/
├── chatbot/
│ ├── __init__.py
│ ├── interact.py
│ ├── train.py
├── setup.py
├── requirements.txt
├── README.md
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()
chatbot-interact command is not found, try:
python -m chatbot.interact
pip updated:
python -m pip install --upgrade pip
This project is licensed under the MIT License.
Gaurav Upadhyay