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

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 149

  • @binaryhood
    @binaryhood  19 дней назад

    I’ve upgraded the chatbot and released Chatbot v2! Check it out here ruclips.net/video/hcXHfoHGiEA/видео.htmlsi=nRToz-wAEFdpSvOi

  • @queue8
    @queue8 Год назад +18

    Brilliant GUI, thank you!

    • @frgxcv6164
      @frgxcv6164 4 месяца назад

      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 Год назад +5

    How to add you own json file as a database rather using microsoft or chat gpt api

  • @abbasshah9793
    @abbasshah9793 8 месяцев назад

    Thank you sooo much for your mentorship

  • @anandballabh6023
    @anandballabh6023 4 месяца назад +6

    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 28 дней назад +1

      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 + '';

  • @vijaybudhewar7014
    @vijaybudhewar7014 Год назад +1

    Very nice WebUI

  • @viral_world_today016
    @viral_world_today016 7 месяцев назад

    VERY USEFUL! THANK YOU SO MUCH BRO

  • @kishlaykumar7617
    @kishlaykumar7617 9 месяцев назад +3

    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 8 месяцев назад

      I'm searching for that now ....😢

  • @RealWorldLearningswithBrane
    @RealWorldLearningswithBrane Год назад +1

    Your Videos are awsome please increase your Voice soon 10k Subs

  • @TeamUpWithAI
    @TeamUpWithAI Год назад +1

    Thank you for your effort! :)

  • @aryantiwari1945
    @aryantiwari1945 9 месяцев назад +2

    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

  • @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

  • @sarcasticboy540
    @sarcasticboy540 25 дней назад

    finally i did it... thank you very much... you got a subsriber
    on live hosting do i get encouter problem ?

  • @vaishnavinamdeo8387
    @vaishnavinamdeo8387 Год назад +10

    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 месяцев назад +2

      Status: 304 isn't actually an error. Check properly it might be something else

    • @sachinbpillai-qp2cq
      @sachinbpillai-qp2cq 9 месяцев назад +4

      You sure u saved style.css on static folder

    • @-Quran_kreem
      @-Quran_kreem 3 месяца назад

      304 is not an error

  • @قناة_لحظة_إدراك
    @قناة_لحظة_إدراك Год назад

    How do I link the bot to my blog on Blogger?

    • @binaryhood
      @binaryhood  Год назад +1

      Use Cloud Platform like Heroku, AWS or Azure and then link it with your blogging website

  • @steveleadopogo
    @steveleadopogo Год назад

    thaks bro

  • @theasiaticlion1712
    @theasiaticlion1712 Год назад +2

    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 Год назад +1

      why were you typing redirect_template though?

  • @Harikesh662
    @Harikesh662 9 месяцев назад +2

    After installation of requirement python app.py i am nor getting any url for server which command give to get link of the server

  • @jeraldcabusas8646
    @jeraldcabusas8646 11 месяцев назад +1

    can the chatbot answer all the user question correctly or closest answer?

  • @auevi
    @auevi Год назад +2

    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

  • @adc5813
    @adc5813 Год назад

    awesome !! thank you !!

  • @augustinehebrus3433
    @augustinehebrus3433 Год назад

    You just gained a subscriber ❤🎉

  • @sysadmin9396
    @sysadmin9396 10 месяцев назад

    Can this keep the Conversation context of multiple users separate?

  • @grandwarrior2214
    @grandwarrior2214 5 месяцев назад

    how to format the output of the chatbot? (bold, italic, bullet points, new lines, etc)

  • @enriqueduran6548
    @enriqueduran6548 Год назад

    Good

  • @stevetheweeb40
    @stevetheweeb40 11 месяцев назад

    thanks for the video, but is there a way to fine-tune this dialogpt for our own purposes

  • @shlokiplayz
    @shlokiplayz Месяц назад +2

    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 28 дней назад

      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 + '';

  • @araldjean-charles3924
    @araldjean-charles3924 Год назад

    Thank you! I have learned!

  • @shotthedancer
    @shotthedancer Год назад

    you deserve a million comments

    • @abc_8773
      @abc_8773 Год назад

      New video idea : YT comment bot XD

  • @megumi3051
    @megumi3051 Год назад +3

    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😢

  • @edwarddoofenschmirtz4436
    @edwarddoofenschmirtz4436 19 дней назад

    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  19 дней назад

      @@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!

  • @EuniceOkhakumhe
    @EuniceOkhakumhe 5 месяцев назад

    8:09 umm this is soo helpful but mine isn't showing template

  • @NoTimeWaste1
    @NoTimeWaste1 4 месяца назад

    Thank you!!

  • @fubar8805
    @fubar8805 Год назад +4

    Thanks for you time, i really apreciate your work, please, can you do a tutorial for chatbot with Chat GPT y Django.

    • @binaryhood
      @binaryhood  Год назад +1

      Please check this video
      ruclips.net/video/i8wxZwkBpwo/видео.html

  • @sarcasticboy540
    @sarcasticboy540 25 дней назад

    everything went well... but i am not getting response from the chatbot... how to resolve it ?

  • @surabi.p2786
    @surabi.p2786 10 месяцев назад

    Does it run on pycharm?

  • @sysadmin9396
    @sysadmin9396 10 месяцев назад +1

    Can this serve multiple users with their own individual chats?

  • @TrapMallu
    @TrapMallu 2 месяца назад

    How did we train with our data?

  • @sakshigarg5522
    @sakshigarg5522 Год назад +3

    The chatbot isn't replying back. What should I do?

    • @manyagarg9732
      @manyagarg9732 Год назад

      same

    • @binaryhood
      @binaryhood  Год назад +1

      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 2 месяца назад

      Same problem what should I do??

    • @pardhasaradhi6707
      @pardhasaradhi6707 2 месяца назад

      ​​@@binaryhoodwhat should I do I added it

  • @ashaVerma-n5t
    @ashaVerma-n5t 4 месяца назад +2

    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?

  • @pragati_agrawal
    @pragati_agrawal 11 месяцев назад +1

    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

  • @n_g_kcrazyboys3302
    @n_g_kcrazyboys3302 25 дней назад

    i don`t get reply from server side , i`m confusing where i did mistake

  • @mariesuja
    @mariesuja 4 месяца назад

    Hii,could u pls tell me how did u copy the details in terminal and from where?

    • @binaryhood
      @binaryhood  4 месяца назад +1

      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.

  • @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?

  • @304HATS
    @304HATS 7 месяцев назад

    Is it possible to integrate llama in this?

  • @sivasai3838
    @sivasai3838 10 месяцев назад

    You copied file path and written lm but it is not working in windows what should I do

  • @anishkapoor25
    @anishkapoor25 Год назад +1

    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 4 месяца назад

      Inside .venu
      U have to install Flask, torch,transformer

  • @chinasaedeh-c7v
    @chinasaedeh-c7v 2 месяца назад

    but in the html where did you copy

  • @akshaikumar7966
    @akshaikumar7966 Год назад

    how can i train the model with my custom data ?

  • @Yukthak215
    @Yukthak215 4 месяца назад

    What to use instead of terminal in windows 11

  • @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 Год назад +1

      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.

  • @shadowstrike-13-a
    @shadowstrike-13-a Год назад +3

    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

  • @salmanramalan1588
    @salmanramalan1588 Год назад +1

    how do i make the bot smarter tho

    • @zenithcares5441
      @zenithcares5441 10 месяцев назад

      You trian the bot based on your database

  • @adc5813
    @adc5813 Год назад

    could you do a tutorial using PyNLPl

  • @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 25 дней назад

      it's not actually server problem... make sure you keep app.py file inside the folder not outside of it.. or along with html

  • @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
      ruclips.net/video/i8wxZwkBpwo/видео.html

  • @anuragchaudhuri8146
    @anuragchaudhuri8146 3 месяца назад

    Could you please help me out - I am getting 500 Internal Server error. How to solve this problem?

  • @Zenmodeblogs
    @Zenmodeblogs 11 месяцев назад +1

    Help I'm getting "500 internal server error"

  • @Glitchy-v1c
    @Glitchy-v1c 2 месяца назад

    can u pls tell where to get html code

  • @FFVenomVortexx
    @FFVenomVortexx 7 месяцев назад

    Can i use this code on my real working project

  • @AritraBhattacharya-yd4ey
    @AritraBhattacharya-yd4ey 7 месяцев назад

    Where can i get the html code

  • @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...

  • @kousttavbiswas9742
    @kousttavbiswas9742 3 месяца назад

    Error 500 occurs???

  • @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

  • @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 ruclips.net/video/i8wxZwkBpwo/видео.htmlsi=_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

  • @divyav2305
    @divyav2305 8 месяцев назад

    How to get the ouput page in windows

    • @ForMe-24
      @ForMe-24 8 месяцев назад

      copy url and go to your browser and copy it and search

  • @davidraju55
    @davidraju55 7 месяцев назад

    The ai is not giving answers for all questions

  • @supritaanandtelecommunicat1102

    i m not getting url in vs code
    plz help

  • @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. ❤

  • @nikitanawle5780
    @nikitanawle5780 Год назад

    Hey I need your help...is there any way to connect you?

  • @vijaysukumarv3512
    @vijaysukumarv3512 11 месяцев назад

    no voice .sound less is coming

  • @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
      ruclips.net/video/i8wxZwkBpwo/видео.html

  • @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?

  • @ananyaagarwal796
    @ananyaagarwal796 9 месяцев назад

    After installation of python app.py , I m not getting any url for server plz help

  • @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

  • @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

  • @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 месяцев назад +1

    why my ai is not responed when i write hello.