Hi, thanks for helping.
So I tried to use scalableminds chatroom and I added this to my MAKEFILE after copying bot_utils and downloading dependencies):
run-bot:
python -m rasa_utils.bot -d models/current/dialogue -u models/current/nlu
that results in errors that I can’t interpret:
mtr@nb17378 MINGW64 /c/Rasa/starter_pack/starter-pack-rasa-stack (master)
$ make run-bot
python -m rasa_utils.bot -d models/current/dialogue -u models/current/nlu
C:\Python368\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as `np.float64 == np.
from ._conv import register_converters as _register_converters
2019-04-04 17:42:45 INFO root - Rasa process starting
2019-04-04 17:42:49 INFO rasa_nlu.components - Added ‘nlp_spacy’ to component cache. Key ‘nlp_spacy-en’.
2019-04-04 17:42:49 WARNING py.warnings - C:\Python368\lib\site-packages\rasa_nlu\extractors\entity_synonyms.py:85: UserWarning: Failed to load synonyms file from ‘models/current/nlu\entity_synonyms.json’
“”.format(entity_synonyms_file))
2019-04-04 17:42:49 WARNING py.warnings - C:\Python368\lib\site-packages\pykwalify\core.py:99: UnsafeLoaderWarning:
The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe.
Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK.
Alternatively include the following in your code:
import warnings
warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)
In most other cases you should consider using ‘safe_load(stream)’
data = yaml.load(stream)
2019-04-04 17:43:10.094151: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
File “C:\Python368\lib\runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “C:\Python368\lib\runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “C:\Rasa\starter_pack\starter-pack-rasa-stack\rasa_utils\bot.py”, line 150, in
tracker_store=_tracker_store)
File “C:\Rasa\starter_pack\starter-pack-rasa-stack\rasa_utils\bot.py”, line 120, in load_agent
action_endpoint=endpoints.action)
File “C:\Python368\lib\site-packages\rasa_core\agent.py”, line 259, in load
ensemble = PolicyEnsemble.load(path) if path else None
File “C:\Python368\lib\site-packages\rasa_core\policies\ensemble.py”, line 182, in load
policy = policy_cls.load(policy_path)
File “C:\Python368\lib\site-packages\rasa_core\policies\keras_policy.py”, line 248, in load
model = load_model(model_file)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\engine\saving.py”, line 229, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\engine\saving.py”, line 306, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\layers\serialization.py”, line 64, in deserialize
printable_module_name=‘layer’)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\utils\generic_utils.py”, line 173, in deserialize_keras_object
list(custom_objects.items())))
File “C:\Python368\lib\site-packages\tensorflow\python\keras\engine\sequential.py”, line 293, in from_config
layer = layer_module.deserialize(conf, custom_objects=custom_objects)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\layers\serialization.py”, line 64, in deserialize
printable_module_name=‘layer’)
File “C:\Python368\lib\site-packages\tensorflow\python\keras\utils\generic_utils.py”, line 193, in deserialize_keras_object
function_name)
ValueError: Unknown layer:name
make: *** [run-bot] Fehler 1
The HTML file looks like this:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<link rel=“stylesheet” href=“https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.css” />
</head>
<body>
<div class=“chat-container”></div>
<script src=“https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.js”/>
</script>
<script type=“text/javascript”>
var chatroom = window.Chatroom({
host: "http://localhost:5005",
title: "Chat with Mike",
container: document.querySelector(".chat-container"),
welcomeMessage: "Hi, I am Mike. How may I help you?",
speechRecognition: "en-US"
});
chatroom.openChat();
</script>
</body>
</html>
Thank you