Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- routers/webhook.py +2 -0
routers/webhook.py
CHANGED
@@ -155,6 +155,7 @@ async def webhook(request: Request):
|
|
155 |
print("start reply -----------------------------------------------"+reply_token)
|
156 |
first_line = text.split('\n')[0]
|
157 |
#test_prompt
|
|
|
158 |
line_bot_api.reply_message(
|
159 |
reply_token,
|
160 |
TextSendMessage(text="line replay test")
|
@@ -190,6 +191,7 @@ async def webhook(request: Request):
|
|
190 |
return {"status": "success", "response_content": response.text}#, response.status_code
|
191 |
|
192 |
except Exception as e:
|
|
|
193 |
#raise するとシステムとまるのでアンコメント
|
194 |
#raise HTTPException(status_code=500, detail=str(e))
|
195 |
return {"status": "success", "response_content": str(e)}#, response.status_code
|
|
|
155 |
print("start reply -----------------------------------------------"+reply_token)
|
156 |
first_line = text.split('\n')[0]
|
157 |
#test_prompt
|
158 |
+
|
159 |
line_bot_api.reply_message(
|
160 |
reply_token,
|
161 |
TextSendMessage(text="line replay test")
|
|
|
191 |
return {"status": "success", "response_content": response.text}#, response.status_code
|
192 |
|
193 |
except Exception as e:
|
194 |
+
print(e)
|
195 |
#raise するとシステムとまるのでアンコメント
|
196 |
#raise HTTPException(status_code=500, detail=str(e))
|
197 |
return {"status": "success", "response_content": str(e)}#, response.status_code
|