rasa/core/training/interactive.py
def _serve_application(app, stories, finetune, skip_visualization):
    """Start a core server and attach the interactive learning IO."""

    endpoint = EndpointConfig(url=DEFAULT_SERVER_URL)

    async def run_interactive_io(running_app: Sanic):
        """Small wrapper to shut down the server once cmd io is done."""

        await record_messages(
            endpoint=endpoint,
            stories=stories,
            finetune=finetune,
            skip_visualization=skip_visualization,
            sender_id=uuid.uuid4().hex)

        logger.info("Killing Sanic server now.")

        running_app.stop()  # kill the sanic server

    app.add_task(run_interactive_io)
    app.run(host='0.0.0.0', port=DEFAULT_SERVER_PORT, access_log=True)

    return app
Start a core server and attach the interactive learning IO.
Start a core server and attach the interactive learning IO.
Start a core server and attach the interactive learning IO .
def _serve_application(app, stories, finetune, skip_visualization):
    endpoint = EndpointConfig(url=DEFAULT_SERVER_URL)
    async def run_interactive_io(running_app: Sanic):
        await record_messages(
            endpoint=endpoint,
            stories=stories,
            finetune=finetune,
            skip_visualization=skip_visualization,
            sender_id=uuid.uuid4().hex)
        logger.info("Killing Sanic server now.")
        running_app.stop()  
    app.add_task(run_interactive_io)
    app.run(host='0.0.0.0', port=DEFAULT_SERVER_PORT, access_log=True)
    return app
def _serve_application ( app , stories , finetune , skip_visualization ) : endpoint = EndpointConfig ( url = DEFAULT_SERVER_URL ) async def run_interactive_io ( running_app : Sanic ) : """Small wrapper to shut down the server once cmd io is done.""" await record_messages ( endpoint = endpoint , stories = stories , finetune = finetune , skip_visualization = skip_visualization , sender_id = uuid . uuid4 ( ) . hex ) logger . info ( "Killing Sanic server now." ) running_app . stop ( ) app . add_task ( run_interactive_io ) app . run ( host = '0.0.0.0' , port = DEFAULT_SERVER_PORT , access_log = True ) return app
Start a core server and attach the interactive learning IO.
Start a core server and attach the interactive learning IO .
"""Start a core server and attach the interactive learning IO.""" """Small wrapper to shut down the server once cmd io is done.""" # kill the sanic server
app
stories
finetune
skip_visualization