AbrahamSanders / seq2seq-chatbot

A sequence2sequence chatbot implementation with TensorFlow.
MIT License
99 stars 56 forks source link

Error: No such command "serve_chat". #21

Open sunn-e opened 5 years ago

sunn-e commented 5 years ago
X:\New folder\Github repos\seq2seq-chatbot\seq2seq-chatbot\models\cornell_movie_dialog\trained_model_v2\trained_model_v2>call C:\ProgramData\Anaconda3\scripts\activate.bat C:\ProgramData\Anaconda3
The system cannot find the path specified.
I'm getting the following error:
X:\New folder\Github repos\seq2seq-chatbot\seq2seq-chatbot\models\cornell_movie_dialog\trained_model_v2\trained_model_v2>cd ..\..\..

X:\New folder\Github repos\seq2seq-chatbot\seq2seq-chatbot\models>set FLASK_APP=chat_web.py

X:\New folder\Github repos\seq2seq-chatbot\seq2seq-chatbot\models>flask serve_chat "models\cornell_movie_dialog\trained_model_v2\best_weights_training.ckpt" -p 8080
Usage: flask [OPTIONS] COMMAND [ARGS]...

Error: No such command "serve_chat".

I installed the required and exact version of dependencies. Still no use. Same issue persists. Please look into it.

sunn-e commented 5 years ago

sorry, I did a mistake and copied content in a folder one level deeper. My apologies. Now I'm having isssue with chat_ui.html My command window is opening succesfully with http://127.0.0.1:8080/ but It gives me 404 error.

sunn-e commented 5 years ago

http://localhost:8080/chat_ui.html this too gives me error, adn this one too http://127.0.0.1:8080/chat_ui.html

AbrahamSanders commented 5 years ago

Can you provide a screenshot?

Thanks

sunn-e commented 5 years ago
error-webchat error-webchat1
sunn-e commented 5 years ago
3
sunn-e commented 5 years ago

I have copied the weights to the required folder, am I supposed to copy chat_ui.html in it too?

AbrahamSanders commented 5 years ago

chat_ui.html should be in the root seq2seq-chatbot folder, alongside chat_web.py, chatbot_model.py, and the other python files.

The weights (and batch files) should be under the models folder: seq2seq-chatbot\models\cornell_movie_dialog\trained_model_v2

MasterZitron commented 5 years ago

Same error here, batch files and the weights are under that directory.

sunn-e commented 5 years ago

@MasterZitron The previous solution worked for me .

MasterZitron commented 5 years ago

@sunn-e what did you do exactly? As I said, the files are in the right place. It might be a config or my firewall not letting me use it. help

MasterZitron commented 5 years ago

I think its because its running on 127.0.0.1, how do I change it?

AbrahamSanders commented 5 years ago

@MasterZitron from your screenshot it looks like your model directory is missing a few required files:

The chat cannot operate without these two files.

ankan-fullstack commented 4 years ago

@AbrahamSanders I have both files in my model directory but getting same error.

mdskrumi commented 4 years ago

Having the same problem ..!!! Capture 2 Capture