Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Merge 4281a8d into 97edf28
Browse files Browse the repository at this point in the history
  • Loading branch information
akelad committed Jul 24, 2018
2 parents 97edf28 + 4281a8d commit 99400a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rasa_core/run.py
Expand Up @@ -5,6 +5,7 @@

import argparse
import logging
import os

from builtins import str
from typing import Optional, Union, Text
Expand Down Expand Up @@ -160,7 +161,7 @@ def interpreter_from_args(
return nlu_model

if nlu_model:
name_parts = nlu_model.split("/")
name_parts = os.path.split(nlu_model)
else:
name_parts = []

Expand All @@ -173,9 +174,9 @@ def interpreter_from_args(
return NaturalLanguageInterpreter.create(nlu_model)
elif len(name_parts) == 2:
if nlu_endpoint:
return RasaNLUHttpInterpreter(name_parts[0],
return RasaNLUHttpInterpreter(name_parts[1],
nlu_endpoint,
name_parts[1])
name_parts[0])
else:
return NaturalLanguageInterpreter.create(nlu_model)
else:
Expand All @@ -185,7 +186,7 @@ def interpreter_from_args(
"specify the model to use with "
"`--nlu project/model`.")
else:
return None
return NaturalLanguageInterpreter.create(nlu_model)


def main(model_directory, nlu_model=None, channel=None, port=None,
Expand Down

0 comments on commit 99400a1

Please sign in to comment.