Skip to content

哈哈狗是一個根據給定文字或段落,透過語言模型生成 emoji😊️ 的 linebot

Notifications You must be signed in to change notification settings

pha123661/EmojiLmBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

哈哈狗

docker

👉English README👈

使用方法

範例:

使用者輸入:@哈哈狗 那你很厲害誒
哈哈狗回覆:那你很厲害誒😎😎😎

  1. 在 LINE 上加哈哈狗好友:@255eanep
    QR Code
  2. 向哈哈狗傳送帶有前綴或後綴 @哈哈狗 的文字。
    例如: "@哈哈狗 我愛你" 或 "我愛你 @哈哈狗"
  3. 哈哈狗也可以加入群組使用!

在您自己的伺服器上運行哈哈狗!

配置以下環境變量或使用 .env 文件:

  • LINE_CHANNEL_SECRET:LINE 頻道密鑰
  • LINE_CHANNEL_ACCESS_TOKEN:LINE 頻道訪問令牌
  • HF_API_TOKEN_LIST:Hugging Face API 令牌列表,由空格分隔

建立映像檔

git clone https://github.com/pha123661/EmojiLmBot.git
docker build -t emoji-lm-line-bot .

或者,您可以直接從 Docker Hub 拉取映像檔:

docker pull pha123661/emoji-lm-line-bot

運行

docker run -p 8000:8000 --env-file .env -d --rm --name emoji-lm-line-bot pha123661/emoji-lm-line-bot

停止

docker stop emoji-lm-line-bot
# docker rm emoji-lm-line-bot