Learn How to Build a Chatbot with Flask - Step-by-Step Tutorial with HTML, CSS, and JavaScript

  Рет қаралды 178,201

Binaryhood

Binaryhood

Күн бұрын

Пікірлер
@binaryhood
@binaryhood 12 күн бұрын
I’ve upgraded the chatbot and released Chatbot v2! Check it out here kzbin.info/www/bejne/npS7eZmlfayce6Msi=nRToz-wAEFdpSvOi
@queue8
@queue8 Жыл бұрын
Brilliant GUI, thank you!
@frgxcv6164
@frgxcv6164 3 ай бұрын
If I change the API to an updated version, will the chatbot work on a better version or something'll go wrong?
@hirudorasat.8133
@hirudorasat.8133 Жыл бұрын
How to add you own json file as a database rather using microsoft or chat gpt api
@vaishnavinamdeo8387
@vaishnavinamdeo8387 Жыл бұрын
Hey, I'm getting 304 error "GET /static/style.css HTTP/1.1" 304 - Can you please help me I deleted cache from browser but it's still giving same error.
@fishmacronisoup
@fishmacronisoup 10 ай бұрын
Status: 304 isn't actually an error. Check properly it might be something else
@sachinbpillai-qp2cq
@sachinbpillai-qp2cq 9 ай бұрын
You sure u saved style.css on static folder
@-Quran_kreem
@-Quran_kreem 3 ай бұрын
304 is not an error
@anandballabh6023
@anandballabh6023 4 ай бұрын
Hello I was trying this code getting following sequence in python terminal. 127.0.0.1 - - [08/Sep/2024 21:58:47] "GET /?msg=hello HTTP/1.1" 200 - 127.0.0.1 - - [08/Sep/2024 21:58:47] "GET /static/style.css HTTP/1.1" 304 -. But not getting any response in chat bot
@priyanshu3136
@priyanshu3136 2 ай бұрын
Same with me
@jitulborah_10
@jitulborah_10 22 күн бұрын
for the two variables : userHtml and botHtml, two changes were being made which was not present in the copy links provided in description , after doing this , it worked for me . Try doing the same . instead of "user input" , change to "rawText" , "time "to "str_time" , and "bot_response "to "data" as shown below. var userHtml = '' + rawText + '' + str_time + '' + ''; var botHtml = '' + '' + '' + data + '' + str_time + '';
@viral_world_today016
@viral_world_today016 7 ай бұрын
VERY USEFUL! THANK YOU SO MUCH BRO
@Harikesh662
@Harikesh662 9 ай бұрын
After installation of requirement python app.py i am nor getting any url for server which command give to get link of the server
@kritisinha3137
@kritisinha3137 7 ай бұрын
are you able to resolve it ?
@aryantiwari1945
@aryantiwari1945 9 ай бұрын
how do you stream output instead of sending it all at once?
@abderahimmazouz2088
@abderahimmazouz2088 5 ай бұрын
very good question , i hope that he could read your comment
@shlokiplayz
@shlokiplayz Ай бұрын
Hey mate it is running successfully but not giving any reply like I am greeting it a hello and bo reply cames back how can I resolve it
@jitulborah_10
@jitulborah_10 22 күн бұрын
for the two variables : userHtml and botHtml, two changes were being made which was not present in the copy links provided in description , after doing this , it worked for me . Try doing the same . instead of "user input" , change to "rawText" , "time "to "str_time" , and "bot_response "to "data" as shown below. var userHtml = '' + rawText + '' + str_time + '' + ''; var botHtml = '' + '' + '' + data + '' + str_time + '';
@abbasshah9793
@abbasshah9793 8 ай бұрын
Thank you sooo much for your mentorship
@theasiaticlion1712
@theasiaticlion1712 Жыл бұрын
if any error like this rom flask import Flask, redirect_template, request, jsonify ImportError: cannot import name 'redirect_template' from 'flask' (/usr/lib/python3/dist-packages/flask/__init__.py) then sol :: replace redirect_template to render_template
@SatSTAR0
@SatSTAR0 Жыл бұрын
why were you typing redirect_template though?
@sarcasticboy540
@sarcasticboy540 18 күн бұрын
everything went well... but i am not getting response from the chatbot... how to resolve it ?
@sivasai3838
@sivasai3838 9 ай бұрын
You copied file path and written lm but it is not working in windows what should I do
@pragati_agrawal
@pragati_agrawal 11 ай бұрын
Hi I am usimh the same concept but I am creatig a voicebot not a chatbot can you help me into this
@zenithcares5441
@zenithcares5441 10 ай бұрын
Usimh, do you later got the voicebot integration
@auevi
@auevi Жыл бұрын
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' when I run: pip install -r requirements.txt
@ishikami174
@ishikami174 8 ай бұрын
check the directory you are in
@ashaVerma-n5t
@ashaVerma-n5t 4 ай бұрын
I am facing error of : raise err the specified module could not be found, Error loading env\Lib\sitre-package\torch\lib\fbgemm.dll or one of the dependencies I uninstalled and reinstalled the torch but getting same error Please help anyone 🤝
@Zahra-kb9pm
@Zahra-kb9pm 4 ай бұрын
got the same issues, have you solved the problem?
@j0ker361
@j0ker361 3 ай бұрын
Hello, how can I fix my local host. It says "Hmmm… can't reach this page", I already done many things but still can't reach the local host. In my first time of use the code works but after you change something at 20:04 so that the bot will reply, after I change it like yours the code loads to error saying "Hmmm… can't reach this page". Hope you notice me and also great video tutorial I hope many kind developers like you teach more people like me as a startup developer. Thank you for the response
@RealWorldLearningswithBrane
@RealWorldLearningswithBrane Жыл бұрын
Your Videos are awsome please increase your Voice soon 10k Subs
@anishkapoor25
@anishkapoor25 Жыл бұрын
Hi i was trying to run this I installed everything but everytime it is showing ModuleNotFoundError No module named flask can you please help me with that
@dmarino1752
@dmarino1752 Жыл бұрын
Sometimes It can be an error with your venv. If your venv is active then try typing deactivate in the terminal. Then your gonna want to delete your virtual environment, and create and activate a new one. Sometimes that will fix it.
@Funny-blog.873
@Funny-blog.873 3 ай бұрын
Inside .venu U have to install Flask, torch,transformer
@sysadmin9396
@sysadmin9396 10 ай бұрын
Can this keep the Conversation context of multiple users separate?
@n_g_kcrazyboys3302
@n_g_kcrazyboys3302 18 күн бұрын
i don`t get reply from server side , i`m confusing where i did mistake
@TeamUpWithAI
@TeamUpWithAI Жыл бұрын
Thank you for your effort! :)
@قناة_لحظة_إدراك
@قناة_لحظة_إدراك Жыл бұрын
How do I link the bot to my blog on Blogger?
@binaryhood
@binaryhood Жыл бұрын
Use Cloud Platform like Heroku, AWS or Azure and then link it with your blogging website
@jeraldcabusas8646
@jeraldcabusas8646 10 ай бұрын
can the chatbot answer all the user question correctly or closest answer?
@zenithcares5441
@zenithcares5441 10 ай бұрын
yeah, have you tried it out
@anuragchaudhuri8146
@anuragchaudhuri8146 3 ай бұрын
Could you please help me out - I am getting 500 Internal Server error. How to solve this problem?
@grandwarrior2214
@grandwarrior2214 5 ай бұрын
how to format the output of the chatbot? (bold, italic, bullet points, new lines, etc)
@megumi3051
@megumi3051 Жыл бұрын
I ve done everything but please help bro Its showing error 'Function ' object has no attribute 'html' My link is not working its showing internal server error😢
@AdityaPatadiya-jj8yj
@AdityaPatadiya-jj8yj 9 ай бұрын
its the appendex
@AdityaPatadiya-jj8yj
@AdityaPatadiya-jj8yj 9 ай бұрын
21:06
@edwarddoofenschmirtz4436
@edwarddoofenschmirtz4436 12 күн бұрын
Is it possible for flask to handle such things as logins, user account creation, etc., while also having this ai chatbot or It only handles one task like if your creating a chatbot, you can only create a chatbot but without the logins, and registrations, the othing things that you would normally encounter when you create a web application.
@binaryhood
@binaryhood 12 күн бұрын
@@edwarddoofenschmirtz4436 Yes, Flask can handle almost anything, including registration and creating a full web app. However, using heavy libraries for your chatbot model might make your application harder to deploy because the slug size will be larger. Instead, I would suggest integrating external AI services like Google Generative AI or OpenAI for the chatbot functionality. This approach will keep your Flask application lightweight and easier to manage while still achieving all the required features. Hope this answers your question!
@kishlaykumar7617
@kishlaykumar7617 9 ай бұрын
Really great content keep it up!....But instead of dialogpt, if I want to use dataset to communicate through chat interface. any suggestions for that ?
@sad_vibz
@sad_vibz 7 ай бұрын
I'm searching for that now ....😢
@sakshigarg5522
@sakshigarg5522 Жыл бұрын
The chatbot isn't replying back. What should I do?
@manyagarg9732
@manyagarg9732 Жыл бұрын
same
@binaryhood
@binaryhood Жыл бұрын
Did you make sure that you added the user HTML code, that will show your responses, 14:00 min
@mrgregory9537
@mrgregory9537 6 ай бұрын
Please can you help me. My chat bot is not taking in text. Once I hit sent it disappears like the same error you got earlier during the video. How do I correct mine?
@pardhasaradhi6707
@pardhasaradhi6707 Ай бұрын
Same problem what should I do??
@pardhasaradhi6707
@pardhasaradhi6707 Ай бұрын
​​@@binaryhoodwhat should I do I added it
@troyaaroncarcosia4738
@troyaaroncarcosia4738 Ай бұрын
Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
@sarcasticboy540
@sarcasticboy540 18 күн бұрын
it's not actually server problem... make sure you keep app.py file inside the folder not outside of it.. or along with html
@sysadmin9396
@sysadmin9396 10 ай бұрын
Can this serve multiple users with their own individual chats?
@zenithcares5441
@zenithcares5441 10 ай бұрын
Sure, have you tried it out
@KrimmStudios
@KrimmStudios Жыл бұрын
Thanks for the tutorial! Would you be able to help me troubleshoot it thought? When I upload my files to a hosting server and link it to a domain, I keep getting a 404 error everytime the /get route is trying to be accessed. Would you know why?
@stevetheweeb40
@stevetheweeb40 11 ай бұрын
thanks for the video, but is there a way to fine-tune this dialogpt for our own purposes
@mariesuja
@mariesuja 4 ай бұрын
Hii,could u pls tell me how did u copy the details in terminal and from where?
@binaryhood
@binaryhood 4 ай бұрын
You need to use Command + C to copy the folder. Then, type `cd` followed by a space, and use Command + V to paste the folder path. This will change your directory to the chatbot folder, allowing you to run your Python commands.
@surabi.p2786
@surabi.p2786 10 ай бұрын
Does it run on pycharm?
@chinasaedeh-c7v
@chinasaedeh-c7v 2 ай бұрын
but in the html where did you copy
@Yukthak215
@Yukthak215 4 ай бұрын
What to use instead of terminal in windows 11
@ThaoThu-vx3xw
@ThaoThu-vx3xw 3 ай бұрын
command prompt
@TrapMallu
@TrapMallu Ай бұрын
How did we train with our data?
@akshaikumar7966
@akshaikumar7966 Жыл бұрын
how can i train the model with my custom data ?
@adc5813
@adc5813 Жыл бұрын
awesome !! thank you !!
@augustinehebrus3433
@augustinehebrus3433 Жыл бұрын
You just gained a subscriber ❤🎉
@304HATS
@304HATS 7 ай бұрын
Is it possible to integrate llama in this?
@kd29003
@kd29003 11 ай бұрын
Everything went well.... But i am getting error at the end.... After entering python app.py ....... That cannot import AutoModelForCasualLM from transformer .... Please help asap i'm having my project tomorrow
@rafi8277
@rafi8277 10 ай бұрын
Have you done it?
@kd29003
@kd29003 10 ай бұрын
@@rafi8277 no...
@shotthedancer
@shotthedancer Жыл бұрын
you deserve a million comments
@abc_8773
@abc_8773 Жыл бұрын
New video idea : YT comment bot XD
@Zenmodeblogs
@Zenmodeblogs 11 ай бұрын
Help I'm getting "500 internal server error"
@apoorvas1239
@apoorvas1239 10 ай бұрын
Same problem
@apoorvas1239
@apoorvas1239 10 ай бұрын
Did u get the solution?😢
@AdityaPatadiya-jj8yj
@AdityaPatadiya-jj8yj 9 ай бұрын
@@apoorvas1239 its because append at 21:06
@sarcasticboy540
@sarcasticboy540 18 күн бұрын
finally i did it... thank you very much... you got a subsriber on live hosting do i get encouter problem ?
@fubar8805
@fubar8805 Жыл бұрын
Thanks for you time, i really apreciate your work, please, can you do a tutorial for chatbot with Chat GPT y Django.
@binaryhood
@binaryhood Жыл бұрын
Please check this video kzbin.info/www/bejne/n2naqY2toKejrdE
@nachikettare6404
@nachikettare6404 Жыл бұрын
whenever i redirect,it shows following error: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. please help
@GayuniBas
@GayuniBas Жыл бұрын
Could it be because of an internet connection issue? Usually if the error does not specify where the error is or if it's hard to debug, I copy the message and ask chatGPT with a short description what could be the error. It usually tells me the possible issues.
@AdityaPatadiya-jj8yj
@AdityaPatadiya-jj8yj 9 ай бұрын
look at 21:06
@kritisinha3137
@kritisinha3137 7 ай бұрын
@@AdityaPatadiya-jj8yj what it in 21:06 , can you explain , getting the same error after running , in the page its showing that Internal Server Error
@araldjean-charles3924
@araldjean-charles3924 Жыл бұрын
Thank you! I have learned!
@salmanramalan1588
@salmanramalan1588 Жыл бұрын
how do i make the bot smarter tho
@zenithcares5441
@zenithcares5441 10 ай бұрын
You trian the bot based on your database
@vijaybudhewar7014
@vijaybudhewar7014 Жыл бұрын
Very nice WebUI
@EuniceOkhakumhe
@EuniceOkhakumhe 4 ай бұрын
8:09 umm this is soo helpful but mine isn't showing template
@michaelb1099
@michaelb1099 Жыл бұрын
will this work if my data model is in chatgpt openai? which lines should i look at
@FranciscoRamirez-qw6nn
@FranciscoRamirez-qw6nn Жыл бұрын
Same question
@binaryhood
@binaryhood Жыл бұрын
It will work you need to look at the end points of the model that you will use, in our case change the function get_chat_response with your model function or change it to an api call
@binaryhood
@binaryhood Жыл бұрын
Please check this video kzbin.info/www/bejne/n2naqY2toKejrdE
@NoTimeWaste1
@NoTimeWaste1 4 ай бұрын
Thank you!!
@shadowstrike-13-a
@shadowstrike-13-a Жыл бұрын
I want to train my AI for mental health of students, What should I change?
@ffjoker6971
@ffjoker6971 3 ай бұрын
Hey have your project done?
@shadowstrike-13-a
@shadowstrike-13-a 3 ай бұрын
@@ffjoker6971 yeah.. but i didn't deployed it yet
@AritraBhattacharya-yd4ey
@AritraBhattacharya-yd4ey 7 ай бұрын
Where can i get the html code
@malcomjw
@malcomjw Жыл бұрын
Hey there! Love the tutorial! I was wanting to know what the issue may be if my chat isn't showing up. The bot will respond to my inputs, but only the bot's responses are showing up in the chat log with none of mine appearing in it. Any tips would be greatly appreciated.
@lonkekalpana2875
@lonkekalpana2875 Жыл бұрын
I am getting same did you resolved it
@malcomjw
@malcomjw Жыл бұрын
@@lonkekalpana2875 So I messed up on my end with the HTML code. I re-wrote it and my text in the chat log was fixed.
@bernardasare3210
@bernardasare3210 3 ай бұрын
how do i train it for specific purpose
@binaryhood
@binaryhood 3 ай бұрын
@@bernardasare3210 You cannot train it for a specific reason through this model you have to use models which can be trained such as OpenAI, go check my video where I integrated ChatGPT into this template
@bernardasare3210
@bernardasare3210 3 ай бұрын
@@binaryhood which video is that please i can't seem to find it
@binaryhood
@binaryhood 3 ай бұрын
@@bernardasare3210 kzbin.info/www/bejne/n2naqY2toKejrdEsi=_obutrWUOSc6vp5l Through this you’ll be to use ChatGPT and in OpenAI create your custom GPT and link that into the app.py using your custom API Key
@Glitchy-v1c
@Glitchy-v1c 2 ай бұрын
can u pls tell where to get html code
@steveleadopogo
@steveleadopogo Жыл бұрын
thaks bro
@FFVenomVortexx
@FFVenomVortexx 7 ай бұрын
Can i use this code on my real working project
@kousttavbiswas9742
@kousttavbiswas9742 3 ай бұрын
Error 500 occurs???
@divyav2305
@divyav2305 8 ай бұрын
How to get the ouput page in windows
@ForMe-24
@ForMe-24 7 ай бұрын
copy url and go to your browser and copy it and search
@nikitanawle5780
@nikitanawle5780 Жыл бұрын
Hey I need your help...is there any way to connect you?
@moralstorieskids3884
@moralstorieskids3884 Жыл бұрын
hey we can, i'm working same
@vidhuniranjan3103
@vidhuniranjan3103 Жыл бұрын
Hey @binaryhood I need a help, how do I integrate this GUI with my own collaborative filtering ipynb python code??It would be really helpful if you reply to this message
@adc5813
@adc5813 Жыл бұрын
could you do a tutorial using PyNLPl
@supritaanandtelecommunicat1102
@supritaanandtelecommunicat1102 Жыл бұрын
i m not getting url in vs code plz help
@binaryhood
@binaryhood Жыл бұрын
Can you please reply with a screenshot on @binaryhood Instagram page with the the steps you took
@supritaanandtelecommunicat1102
@supritaanandtelecommunicat1102 Жыл бұрын
@@binaryhood Thank you
@enriqueduran6548
@enriqueduran6548 Жыл бұрын
Good
@davidraju55
@davidraju55 6 ай бұрын
The ai is not giving answers for all questions
@ananyaagarwal796
@ananyaagarwal796 9 ай бұрын
After installation of python app.py , I m not getting any url for server plz help
@goodnamehostname4978
@goodnamehostname4978 Жыл бұрын
I don't understand the last part how to run from terminal because when I do so it gives me an error message so can you please help me...
@binaryhood
@binaryhood Жыл бұрын
Can you please share your error that you get when your run the python file. Question: Have you installed the requirement.txt file, and also do you have Pip and python installed?
@tylerdurden4285
@tylerdurden4285 Жыл бұрын
You were very unlucky with the answers it provided to your questions but that's not on you and overall it was a good video. ❤
@GARYGUS
@GARYGUS Жыл бұрын
Thank you for the great tutorial. It works great. However, the Microsoft DialoGPT is really poor. How to use a different LLM model? or even ChatGPT API instead?
@binaryhood
@binaryhood Жыл бұрын
Please check this video kzbin.info/www/bejne/n2naqY2toKejrdE
@vijaysukumarv3512
@vijaysukumarv3512 11 ай бұрын
no voice .sound less is coming
@uuvu
@uuvu Жыл бұрын
U are very zrba
@hesamrazavy8882
@hesamrazavy8882 Жыл бұрын
write down your topics and keywords somewhere to speak more fluent ... then it wont be boring or like scratching your voice on others ears
@mdzidane9620
@mdzidane9620 Жыл бұрын
Bro can you generate image with it?
@binaryhood
@binaryhood Жыл бұрын
This is a text based Chat-bot, to generate images from a chat bot you need to explore different models. In this video I used hugging face library, they also provide text to image models too, check this out huggingface.co/models?pipeline_tag=text-to-image&sort=downloads
@chinasaedeh-c7v
@chinasaedeh-c7v 2 ай бұрын
i did it but visual studio code it show me plus9 error
@urazayousuf9681
@urazayousuf9681 7 ай бұрын
why my ai is not responed when i write hello.
@sarcasticboy540
@sarcasticboy540 18 күн бұрын
same
How to Build AI ChatBot with Custom Knowledge Base in 10 mins
10:46
Chat Bot With PyTorch - NLP And Deep Learning - Python Tutorial (Part 1)
20:42
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
This Took Me 150 Hours to Code
16:40
Kenny Gunderman
Рет қаралды 337 М.
Exploiting EVM Slots
24:18
Abu
Рет қаралды 113
How to Build an AI Document Chatbot in 10 Minutes
16:10
Dave Ebbelaar
Рет қаралды 370 М.
Why's nobody using Astro?
9:26
Maximilian Schwarzmüller
Рет қаралды 32 М.
HTML, CSS, and Javascript in 30 minutes
31:49
devdojo
Рет қаралды 619 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН