コード例 #1
0
def hello_world():
    if request.method == 'PUT':
        print(request.json)
        errorStatement = request.json["errorstat"]

        bot = Chat()
        ans = bot.chatbot_response(errorStatement)
        return jsonify(ans)
コード例 #2
0
from chat import Chat

bot = Chat()

print(bot.chatbot_response('= tree 2'))