Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The working example of Django integration is showing same response for every input? #1375

Open
dsbyprateekg opened this issue Aug 21, 2018 · 9 comments

Comments

@dsbyprateekg
Copy link

Hi,

I have copied the following example and imported in Pycharm-
https://github.com/gunthercox/ChatterBot/tree/master/examples/django_app

After training and running the project I am able to see the chatbot window but when I ask any question to it it responses the same answer which it learned from first input like in below screen shot-
q

Have anyone run this example and found this issue? How can I solve this? Is there any setting which is not mentioned here?

@kumarkrish85
Copy link

Hi @dcs8

I hope you run the "python manage.py train" command before running the Django example. share the settings.py file here.

@dsbyprateekg
Copy link
Author

Hi @kumarkrish85 ,

Yes I ran the train command before starting the server and settings.py file is same given in the example.

settings.txt

@kumarkrish85
Copy link

Hi @dcs8

Try changing the order of adapters used in settings.py , use best match adapter followed by other adapters.

@dsbyprateekg
Copy link
Author

@kumarkrish85 previously I used the settings exact same as in given example where no any adapter was used. There also I am getting the same.
Have you run the same example in your machine?

@kumarkrish85
Copy link

@dcs8 yes , it worked fine for me. Please try following workarounds.

  • Delete the .db file and train again

  • Create the command line chat bot with the same adapters and execute , and then port it to Django

@dsbyprateekg
Copy link
Author

@kumarkrish85 .db file you mean db.sqlite3 file?

@kumarkrish85
Copy link

@dcs8 yesm firstly try executing it from command line and see the desired output and then later port it to Django

@14H034160212
Copy link

14H034160212 commented Dec 24, 2018

@dsbyprateekg Have you solved the problem? I am reading your blog and meet the same question.

@dsbyprateekg
Copy link
Author

dsbyprateekg commented Dec 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants