Update main.py
Browse files
main.py
CHANGED
|
@@ -8,7 +8,9 @@ from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSend
|
|
| 8 |
|
| 9 |
# Retrieve the PDF
|
| 10 |
files = glob.glob('docs\*.pdf')
|
|
|
|
| 11 |
files_content = [client.files.upload(file=pathlib.Path(file_path)) for file_path in files]
|
|
|
|
| 12 |
|
| 13 |
# 設定 Google AI API 金鑰
|
| 14 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|
|
|
|
| 8 |
|
| 9 |
# Retrieve the PDF
|
| 10 |
files = glob.glob('docs\*.pdf')
|
| 11 |
+
print(files)
|
| 12 |
files_content = [client.files.upload(file=pathlib.Path(file_path)) for file_path in files]
|
| 13 |
+
print(files_content)
|
| 14 |
|
| 15 |
# 設定 Google AI API 金鑰
|
| 16 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|