Update chatbot.py
Browse files- chatbot.py +1 -1
chatbot.py
CHANGED
@@ -73,7 +73,7 @@ def onlineChat(inp):
|
|
73 |
max_result = numpy.max(results)
|
74 |
# print(f"max: {max_result}")
|
75 |
|
76 |
-
if max_result < 0.
|
77 |
tag = 'unknown'
|
78 |
else:
|
79 |
tag = labels[results_index]
|
|
|
73 |
max_result = numpy.max(results)
|
74 |
# print(f"max: {max_result}")
|
75 |
|
76 |
+
if max_result < 0.05:
|
77 |
tag = 'unknown'
|
78 |
else:
|
79 |
tag = labels[results_index]
|