dineshsambasivam / Chatbot_Project

ChatBot with interactive UI using simple web socket server
38 stars 39 forks source link

Server Closes when input is given #2

Open srikrishna123g opened 5 years ago

srikrishna123g commented 5 years ago

When an input is given on the website the server Closes with this output in the terminal.

('::1', 65370, 0, 0) connected ('::1',65370, 0, 0) closed

loubna1998 commented 5 years ago

same here :(

Manav1918 commented 5 years ago

Same issue... Server is not giving any response When I send any data, server closes

loubna1998 commented 5 years ago

hello @Manav1918 i solved the problem, so the thing is that you need to make sure that the "get-response()" function in the server.py file is the one in the chatbot.py file. in my case i just moved to code in server.py to chatbot.py and made 1 file instead of 2. don't forget to remove the "from chatbot import get_response" line while doing that. chatbot.txt

Manav1918 commented 5 years ago

It's not working yet. May i have to run chatbot.train.py first?

Pawan Kumar Prachi

On Thu 13 Jun, 2019, 1:44 PM loubna1998, notifications@github.com wrote:

hello Manav1918 i solved the problem, so the thing is that you need to make sure that the "get-response()" function in the server.py file is the one in the chatbot.py file. in my case i just moved to code in server.py to chatbot.py and made 1 file instead of 2. don't forget to remove the "from chatbot import get_response" line while doing that. chatbot.txt https://github.com/dineshsambasivam/Chatbot_Project/files/3284864/chatbot.txt

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXSABAX4HA542KJ7UMLP2H6WRA5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS4ZVQ#issuecomment-501599446, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXRJ7EHJ5M5IKOHQC63P2H6WRANCNFSM4HEHCMTA .

Manav1918 commented 5 years ago

I have downloaded and pasted the code u sent and renamed it to chatbot.py from chatbot.txt . And removed older chatbot. Py file and server. Py file too. But problem is still existing. Help me plz Pawan Kumar Prachi

On Fri 14 Jun, 2019, 5:08 AM CID An Education Hub, < cidaneducationhub@gmail.com> wrote:

It's not working yet. May i have to run chatbot.train.py first?

Pawan Kumar Prachi

On Thu 13 Jun, 2019, 1:44 PM loubna1998, notifications@github.com wrote:

hello Manav1918 i solved the problem, so the thing is that you need to make sure that the "get-response()" function in the server.py file is the one in the chatbot.py file. in my case i just moved to code in server.py to chatbot.py and made 1 file instead of 2. don't forget to remove the "from chatbot import get_response" line while doing that. chatbot.txt https://github.com/dineshsambasivam/Chatbot_Project/files/3284864/chatbot.txt

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXSABAX4HA542KJ7UMLP2H6WRA5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXS4ZVQ#issuecomment-501599446, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXRJ7EHJ5M5IKOHQC63P2H6WRANCNFSM4HEHCMTA .

loubna1998 commented 5 years ago

yes @Manav1918 you have to run chatbot.train.py first then run chatbot.py and open the html file on a browser

Manav1918 commented 5 years ago

I was doing as u said.... But there is still d problem. When I am typing hello in browser, connection closed method runs in console and then nothing happens

Pawan Kumar Prachi

On Fri 14 Jun, 2019, 11:31 AM loubna1998, notifications@github.com wrote:

yes @Manav1918 https://github.com/Manav1918 you have to run chatbot.train.py first then run chatbot.py and open the html file on a browser

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXQYZ425PIFHOJV5TR3P2MXZ5A5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXVZUPA#issuecomment-501979708, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXQ76HTV2C4GPMJKK23P2MXZ5ANCNFSM4HEHCMTA .

YugamBajaj commented 5 years ago

image

i am getting the same error @Manav1918 @dineshsambasivam @loubna1998 pls help

Manav1918 commented 5 years ago

I left this and used official example to learn. That's working fine

Pawan Kumar Prachi

On Tue 18 Jun, 2019, 2:35 PM YugamBajaj, notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/48938476/59668492-3b928e00-91d6-11e9-8265-826846b9684d.png

i am getting the same error @Manav1918 https://github.com/Manav1918 @dineshsambasivam https://github.com/dineshsambasivam @loubna1998 https://github.com/loubna1998 pls help

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXV65TEPKAL2KR6WMJLP3CQN7A5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5WZTY#issuecomment-503016655, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXWOQ5LK2W76TTZTYKTP3CQN7ANCNFSM4HEHCMTA .

YugamBajaj commented 5 years ago

Can you please re-share the files which are working for you. @Manav1918

Manav1918 commented 5 years ago

Go to chatterbox official link in GitHub and download git of example for chatbot with flask

Pawan Kumar Prachi

On Wed 19 Jun, 2019, 7:31 AM YugamBajaj, notifications@github.com wrote:

Can you please re-share the files which are working for you. @Manav1918 https://github.com/Manav1918

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXVY6MYCCUJYPOCKKKDP3GHOTA5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYAORHA#issuecomment-503376028, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXRBURLL6JXS7FKKGRTP3GHOTANCNFSM4HEHCMTA .

YugamBajaj commented 5 years ago

Please share the link here, it will be helpful for all. @Manav1918

Manav1918 commented 5 years ago

https://github.com/chamkank/flask-chatterbot

Pawan Kumar Prachi

On Wed 19 Jun, 2019, 11:33 AM YugamBajaj, notifications@github.com wrote:

Please share the link here, it will be helpful for all. @Manav1918 https://github.com/Manav1918

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXSDY3L3C6BZZRADIKDP3HD3NA5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYAZDTY#issuecomment-503419343, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXTDTK264245UDUEC4LP3HD3NANCNFSM4HEHCMTA .

Manav1918 commented 5 years ago

If it will not work for anyone, stay tune to youtube.com/c/Cidaneducationhub, I will make a tutorial on flask chatterbot ASAP. Bacause I am seeing, many people have problems in making such app...

Pawan Kumar Prachi

On Thu 20 Jun, 2019, 5:20 AM CID An Education Hub, < cidaneducationhub@gmail.com> wrote:

https://github.com/chamkank/flask-chatterbot

Pawan Kumar Prachi

On Wed 19 Jun, 2019, 11:33 AM YugamBajaj, notifications@github.com wrote:

Please share the link here, it will be helpful for all. @Manav1918 https://github.com/Manav1918

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dineshsambasivam/Chatbot_Project/issues/2?email_source=notifications&email_token=AJ25HXSDY3L3C6BZZRADIKDP3HD3NA5CNFSM4HEHCMTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYAZDTY#issuecomment-503419343, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ25HXTDTK264245UDUEC4LP3HD3NANCNFSM4HEHCMTA .

Deepika2010 commented 4 years ago

hello @Manav1918 i solved the problem, so the thing is that you need to make sure that the "get-response()" function in the server.py file is the one in the chatbot.py file. in my case i just moved to code in server.py to chatbot.py and made 1 file instead of 2. don't forget to remove the "from chatbot import get_response" line while doing that. chatbot.txt

same here :(

Same here ...pls help me to solve