Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -10,7 +10,7 @@ from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSend
|
|
| 10 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 11 |
|
| 12 |
# ่จญๅฎ็ๆๆๅญ็ๅๆธ
|
| 13 |
-
generation_config = genai.types.GenerateContentConfig(max_output_tokens=
|
| 14 |
|
| 15 |
# ่จญๅฎ Line Bot ็ API ้้ฐๅ็งๅฏ้้ฐ
|
| 16 |
line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
|
|
|
|
| 10 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 11 |
|
| 12 |
# ่จญๅฎ็ๆๆๅญ็ๅๆธ
|
| 13 |
+
generation_config = genai.types.GenerateContentConfig(max_output_tokens=256, temperature=0.5, top_p=0.5, top_k=16)
|
| 14 |
|
| 15 |
# ่จญๅฎ Line Bot ็ API ้้ฐๅ็งๅฏ้้ฐ
|
| 16 |
line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
|