From a1fc58185fcd07337b53bd5f24f88d016a28c0a9 Mon Sep 17 00:00:00 2001 From: "explainthis.io" Date: Wed, 22 Feb 2023 12:38:14 +0800 Subject: [PATCH] Add host and port --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 77cc6201e..4d350757c 100644 --- a/main.py +++ b/main.py @@ -56,7 +56,7 @@ def handle_text_message(event): else: response = chatgpt.get_response(user_id, text) msg = TextSendMessage(text=response) - + line_bot_api.reply_message( event.reply_token, msg @@ -64,4 +64,4 @@ def handle_text_message(event): if __name__ == "__main__": - app.run() + app.run(host='0.0.0.0', port=8080)