rasa/core/run.py
def create_http_input_channels(
        channel: Optional[Text],
        credentials_file: Optional[Text]
) -> List['InputChannel']:
    """Instantiate the chosen input channel."""

    if credentials_file:
        all_credentials = read_yaml_file(credentials_file)
    else:
        all_credentials = {}

    if channel:
        return [_create_single_channel(channel, all_credentials.get(channel))]
    else:
        return [_create_single_channel(c, k)
                for c, k in all_credentials.items()]
Instantiate the chosen input channel.
Instantiate the chosen input channel.
Instantiate the chosen input channel .
def create_http_input_channels(
        channel: Optional[Text],
        credentials_file: Optional[Text]
) -> List['InputChannel']:
    if credentials_file:
        all_credentials = read_yaml_file(credentials_file)
    else:
        all_credentials = {}
    if channel:
        return [_create_single_channel(channel, all_credentials.get(channel))]
    else:
        return [_create_single_channel(c, k)
                for c, k in all_credentials.items()]
def create_http_input_channels ( channel : Optional [ Text ] , credentials_file : Optional [ Text ] ) -> List [ 'InputChannel' ] : if credentials_file : all_credentials = read_yaml_file ( credentials_file ) else : all_credentials = { } if channel : return [ _create_single_channel ( channel , all_credentials . get ( channel ) ) ] else : return [ _create_single_channel ( c , k ) for c , k in all_credentials . items ( ) ]
Instantiate the chosen input channel.
Instantiate the chosen input channel .
"""Instantiate the chosen input channel."""
channel
Optional[Text]
credentials_file
Optional[Text]