Skip to content

Commit

Permalink
🤞 hopefully nobody uses a byte string
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Jan 27, 2018
1 parent 5ce5417 commit fd3f858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chatterbot/logic/low_confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class LowConfidenceAdapter(BestMatch):

def __init__(self, **kwargs):
super(LowConfidenceAdapter, self).__init__(**kwargs)
import types

self.confidence_threshold = kwargs.get('threshold', 0.65)

Expand All @@ -30,7 +29,7 @@ def __init__(self, **kwargs):
)

# Convert a single string into a list
if isinstance(default_responses, types.StringTypes):
if isinstance(default_responses, str):
default_responses = [
default_responses
]
Expand Down

0 comments on commit fd3f858

Please sign in to comment.