seq2seq-chatbot icon indicating copy to clipboard operation
seq2seq-chatbot copied to clipboard

Error: No such command "serve_chat".

Open sunn-e opened this issue 6 years ago • 14 comments

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 avatar Jun 05 '19 06:06 sunn-e

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 avatar Jun 05 '19 07:06 sunn-e

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

sunn-e avatar Jun 05 '19 07:06 sunn-e

Can you provide a screenshot?

Thanks

AbrahamSanders avatar Jun 06 '19 01:06 AbrahamSanders

error-webchat error-webchat1

sunn-e avatar Jun 06 '19 12:06 sunn-e

3

sunn-e avatar Jun 06 '19 12:06 sunn-e

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

sunn-e avatar Jun 06 '19 12:06 sunn-e

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

AbrahamSanders avatar Jun 08 '19 18:06 AbrahamSanders

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

MasterZitron avatar Jul 19 '19 22:07 MasterZitron

@MasterZitron The previous solution worked for me .

sunn-e avatar Jul 20 '19 12:07 sunn-e

@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 avatar Jul 20 '19 18:07 MasterZitron

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

MasterZitron avatar Jul 20 '19 18:07 MasterZitron

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

  • hparams.json
  • shared_vocab.tsv

The chat cannot operate without these two files.

AbrahamSanders avatar Jul 23 '19 04:07 AbrahamSanders

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

ankan-fullstack avatar Jan 28 '20 07:01 ankan-fullstack

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

mdskrumi avatar Mar 02 '20 14:03 mdskrumi