alanchen1115 commited on
Commit
ba5cd6b
1 Parent(s): cc9920c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -15,7 +15,7 @@ from linebot.models import (
15
  )
16
 
17
  # 設定 GeminiRAG 的HF網址
18
- client = Client(os.environ["GeminiRAGapi"])
19
  # 設定 Line Bot 的 API 金鑰和秘密金鑰
20
  line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
21
  line_handler = WebhookHandler(os.environ["CHANNEL_SECRET"])
 
15
  )
16
 
17
  # 設定 GeminiRAG 的HF網址
18
+ client = Client(os.environ["GeminiRAGapi"], hf_token=os.environ['HF_TOKEN'])
19
  # 設定 Line Bot 的 API 金鑰和秘密金鑰
20
  line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
21
  line_handler = WebhookHandler(os.environ["CHANNEL_SECRET"])