Skip to content

Commit

Permalink
lgtm fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Evelina Bakhturina <[email protected]>
  • Loading branch information
ekmb committed Jun 3, 2020
1 parent 307b942 commit b752fec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ def update_state(system_uttr, user_uttr, dial_history, belief_state):

if args.mode == 'interactive':
# for user_uttr in user_uttrs:
logging.info("============ Starting a new dialogue ============")
system_uttr, system_action, belief_state, dial_history = init_session()
while True:
logging.info("Type your text, use STOP to exit and RESTART to start a new dialogue.")
system_uttr, system_action, belief_state, dial_history = init_session()
user_uttr = input()

if user_uttr == "STOP":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from nemo.backends.pytorch.nm import NonTrainableNM
from nemo.collections.nlp.data.datasets.multiwoz_dataset.multiwoz_slot_trans import REF_SYS_DA
from nemo.collections.nlp.utils.callback_utils import tensor2numpy
from nemo.core import AxisKind, AxisType, LogitsType, NeuralType, StringType, VoidType
from nemo.core import AxisKind, AxisType, LogitsType, NeuralType, StringType
from nemo.utils import logging
from nemo.utils.decorators import add_port_docs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import torch

from nemo.backends.pytorch.nm import NonTrainableNM
from nemo.core import AxisKind, AxisType, ChannelType, LengthsType, NeuralType, StringType, VoidType
from nemo.core import AxisKind, AxisType, ChannelType, LengthsType, NeuralType, StringType
from nemo.utils import logging
from nemo.utils.decorators import add_port_docs

Expand Down

0 comments on commit b752fec

Please sign in to comment.