Skip to content

Commit

Permalink
🐛 Bug: Automatically upgrade md2tgmd version in the Docker startup sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
yym68686 committed Mar 21, 2024
1 parent 58f3378 commit eb619c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
set -eu
rm -rf /home/ChatGPT-Telegram-Bot
git clone --depth 1 -b main https://github.com/yym68686/ChatGPT-Telegram-Bot.git
pip install -U md2tgmd
python -u /home/ChatGPT-Telegram-Bot/bot.py
4 changes: 4 additions & 0 deletions test/test_tgmd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import md2tgmd
a = "### `probs.scatter_(1, ind`"
# a = "`🤖️ gpt-4-0125-preview`\n\n这段代码是一个关于如何在PyTorch中实现自回归模型生成功能的示例。其中包含了一个`top_k`函数和一个`AutoregressiveWrapper`类。首先,我会解释`top_k`函数中的`probs.scatter_(1, ind, val)`是如何工作的,然后再对整个代码进行概括说明。\n\n### `probs.scatter_(1, ind`"
print(md2tgmd.escape(a))

0 comments on commit eb619c2

Please sign in to comment.