mindus-tk
commited on
Commit
·
13058bd
1
Parent(s):
8888132
fix....
Browse files- app.py +4 -2
- requirements.txt +1 -0
app.py
CHANGED
@@ -4,13 +4,15 @@ from linebot import LineBotApi, WebhookHandler
|
|
4 |
from linebot.exceptions import InvalidSignatureError
|
5 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage
|
6 |
import torch
|
|
|
|
|
7 |
|
8 |
# Flask アプリケーションの初期化
|
9 |
app = Flask(__name__)
|
10 |
|
11 |
# LINE Botの設定(これらの値はLINE Developer Portalから取得し、適切に置き換えてください)
|
12 |
-
LINE_CHANNEL_ACCESS_TOKEN = '
|
13 |
-
LINE_CHANNEL_SECRET = '
|
14 |
line_bot_api = LineBotApi(LINE_CHANNEL_ACCESS_TOKEN)
|
15 |
handler = WebhookHandler(LINE_CHANNEL_SECRET)
|
16 |
|
|
|
4 |
from linebot.exceptions import InvalidSignatureError
|
5 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage
|
6 |
import torch
|
7 |
+
from config_loader import ConfigLoader
|
8 |
+
|
9 |
|
10 |
# Flask アプリケーションの初期化
|
11 |
app = Flask(__name__)
|
12 |
|
13 |
# LINE Botの設定(これらの値はLINE Developer Portalから取得し、適切に置き換えてください)
|
14 |
+
LINE_CHANNEL_ACCESS_TOKEN = 'DN0ZMWYr4bfrlKpwXmqzIIx+FOUEJImlp9jNgUoPQIrhAT0N3UqMymj8GFSapRPkOuG3RAEHEKdPTwLCsYMNBudsueplnoDnNBWFvtv9ne7zNW8M0ZfAvMqWzN94dljRRFUoj+EkCETINpkwpR6WWwdB04t89/1O/w1cDnyilFU='
|
15 |
+
LINE_CHANNEL_SECRET = 'fea828cb773b6b64250a776a38479f39'
|
16 |
line_bot_api = LineBotApi(LINE_CHANNEL_ACCESS_TOKEN)
|
17 |
handler = WebhookHandler(LINE_CHANNEL_SECRET)
|
18 |
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
flask==3.0.0
|
2 |
line-bot-sdk==3.7.0
|
3 |
torch==2.1.2
|
|
|
4 |
pip
|
|
|
1 |
flask==3.0.0
|
2 |
line-bot-sdk==3.7.0
|
3 |
torch==2.1.2
|
4 |
+
transformers
|
5 |
pip
|