Skip to content

jacobDebrone/LIama2_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Llama Telegram Chatbot

Welcome to the Llama Telegram Chatbot project! This repository serves as an illustration of creating a Telegram chatbot leveraging the HugChat library,

offering a platform for engaging in sophisticated AI-driven conversations.

The chatbot seamlessly interacts with users in real-time, facilitating dynamic exchanges through the Telegram messaging platform.

Prerequisites

Before deploying the Telegram chatbot powered by HugChat, ensure the following prerequisites are met:

Python 3.6 or higher

Telegram Bot API Token

HugChat credentials (email and password) <your simple Huggingface email and password if you dont have a Huggingface account go to https://huggingface.co/join

then enter the email and password where required in the code

Required Python libraries: telebot and hugchat

You can install the necessary libraries by executing the following commands:

pip install telebot

pip install hugchat

Getting Started

Clone the repository to your local machine.

Edit the code to set up your Telegram bot token and HugChat credentials.

Replace the following placeholders in the code:

"YOUR_BOT_TOKEN" with your Telegram bot token

"Your Email" with the email registered on Huggingface

"Your password from Huggingface" with your Huggingface password

Running the Chatbot

Execute the main file:

Copy code

python Telehug.py

The bot is configured with default access to Llama. For additional details and options, refer to the comprehensive HugChat library documentation:

HugChat Documentation https://pypi.org/project/hugchat/

Thank you for choosing the Llama Telegram Chatbot project. If you have any questions or need further assistance, feel free to explore the documentation or reach out to our support channels. Happy chatting!

Dont forget to star my repo , am just starting out in python and I would really appreciate the support

Releases

No releases published

Packages

No packages published

Languages