Пример #1
0
def main_from_args(args):
    logging.basicConfig(level=logging.DEBUG)
    logging.getLogger("matplotlib").setLevel(logging.WARN)

    utils.configure_colored_logging(args.loglevel)

    run(args.actions, args.port, args.cors)
Пример #2
0
def main_from_args(args):
    logging.basicConfig(level=logging.DEBUG)
    logging.getLogger("matplotlib").setLevel(logging.WARN)

    utils.configure_colored_logging(args.loglevel)

    run(
        args.actions,
        args.port,
        args.cors,
        args.ssl_certificate,
        args.ssl_keyfile,
        args.ssl_password,
    )
Пример #3
0
def main_from_args(args):
    """Run with arguments."""
    logging.getLogger("matplotlib").setLevel(logging.WARN)

    utils.configure_colored_logging(args.loglevel)
    utils.configure_file_logging(
        logging.getLogger(APPLICATION_ROOT_LOGGER_NAME), args.log_file,
        args.loglevel)
    utils.update_sanic_log_level()

    run(
        args.actions,
        args.port,
        args.cors,
        args.ssl_certificate,
        args.ssl_keyfile,
        args.ssl_password,
        args.auto_reload,
    )
Пример #4
0
import logging

from rasa_sdk import constants, endpoint

logger = logging.getLogger(__name__)

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    logging.getLogger("matplotlib").setLevel(logging.WARN)

    # if you create custom actions, use a module path for the action package to
    # point the server to them e.g. "mymodule.actions"
    # noinspection PyTypeChecker
    endpoint.run(
        None,  # action package
        constants.DEFAULT_SERVER_PORT,  # port of the web server
        "*",  # cors origins
    )
Пример #5
0
from rasa.shared.constants import DEFAULT_ACTIONS_PATH
from rasa_sdk.endpoint import run

run(
    action_package_name=DEFAULT_ACTIONS_PATH,
    port=8080
)