Create a 🤖Deep Learning🤖 Machine Learning Chatbot with Python and Flask

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 79

  • @anmjubaer
    @anmjubaer 2 ปีที่แล้ว

    Thank you for being my first ever tutorial in making a chatbot.

  • @veilchromech
    @veilchromech ปีที่แล้ว

    thanks for the explanation

  • @EvidenceSello
    @EvidenceSello 3 ปีที่แล้ว +1

    Another awesome lesson! Thanks Skolo Online :)

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว +1

      Glad you liked it!

  • @Skrrt_time
    @Skrrt_time ปีที่แล้ว

    With which library do you take the function .predict()
    In the predict class?

  • @bonakalazoey
    @bonakalazoey 3 ปีที่แล้ว +1

    Iam here 😀😀😀😀😀I'm literally delayed but I'm trying my best.... #Road to 1k😊😊😁😁

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว +1

      About 10-15 more to go to 1k, you have been watching since day 1 - thank you

  • @kokimo6589
    @kokimo6589 3 ปีที่แล้ว +1

    Hey please do a video on online skills in demand this year otherwise I've been learning alot from you especially when it came to dropshipping thank you for the content

  • @praneethkumar4791
    @praneethkumar4791 3 ปีที่แล้ว

    Really awesome , I'm looking for this type of project from past 3 days

  • @yizocom.1902
    @yizocom.1902 3 ปีที่แล้ว +1

    Thanks Skolo

  • @datadockter852
    @datadockter852 3 ปีที่แล้ว

    loved it thanks

  • @TheCamilapreciosa
    @TheCamilapreciosa 3 ปีที่แล้ว +1

    Hi, did you create an enviroment with Anaconda or another tools)? And what version of python are you using?.... Thanks for your help

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว +1

      I am using python3 and I created the environment using venv - on the tutorial, I am coding on a linux server from digital ocean. If you get a server there - m.do.co/c/7d9a2c75356d , it comes pre-installed with python3.8 and you can follow this tutorial to set up the python environment www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server

  • @tomboccuto
    @tomboccuto ปีที่แล้ว +1

    There is an error with `training = np.(training)` Stack trace: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (188, 2) + inhomogeneous part...... Did you ever find a solution to this?

    • @MsShreya8
      @MsShreya8 ปีที่แล้ว

      Same, were you able to solve it?

    • @SkoloOnline
      @SkoloOnline  ปีที่แล้ว

      .

    • @tbrnuy
      @tbrnuy ปีที่แล้ว +1

      random.shuffle(training)
      max_length = max(len(item[0]) for item in training)
      training_padded = np.array([item[0] + [0] * (max_length - len(item[0])) + item[1] for item in training])
      training = np.array(training_padded)
      # create train and test lists. X - patterns, Y - intents
      train_x = list(training[:, :-1])
      train_y = list(training[:, -1:])
      print("Training data created")

    • @Skrrt_time
      @Skrrt_time ปีที่แล้ว

      @@tbrnuythanks but now i have a problem with the predict class of the chatty function. It says “Input 0 of layer ‘sequential’ os incompatible with the layer: expected shape=(None, 99), found shape=(None, 90)”. i changed a lot my value and it still this type of error. How can i fix excepted ou found shape exactly the same plz?

  • @nazeers4u
    @nazeers4u 11 หลายเดือนก่อน

    Can you please help me with course work for 3D meshes using datasets I've?

  • @Joumanshow1230
    @Joumanshow1230 ปีที่แล้ว +1

    i have this problem ModuleNotFoundError: No module named 'tensorflow.python'

  • @Skrrt_time
    @Skrrt_time ปีที่แล้ว

    Which IDE do u use?

    • @SkoloOnline
      @SkoloOnline  ปีที่แล้ว

      Google online anything you can download on your machine

  • @francescabalvert7374
    @francescabalvert7374 3 ปีที่แล้ว +1

    Fab tutorial. Can you tell me where end user responses are stored and how to retrieve these responses? TY.

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      currently we are not storing responses, we have not connected a database, but you can just add database code and save

  • @abdoalbrans9688
    @abdoalbrans9688 ปีที่แล้ว

    Hello....I am facing this problem and I don't know how to solve it
    File "E:\python-de\chatbot.py", line 70, in
    training = np.array(training)
    ^^^^^^^^^^^^^^^^^^
    ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (53, 2) + inhomogeneous part.

    • @SkoloOnline
      @SkoloOnline  ปีที่แล้ว

      try googling the error, or even paste it in chatGPT

  • @sebastian1777
    @sebastian1777 2 ปีที่แล้ว

    Skolo, why the tag "noanswer" is not included in the array classes? I think maybe we are not going to see the responses of that tag later

    • @SkoloOnline
      @SkoloOnline  2 ปีที่แล้ว

      sure, you can add noanswer

  • @VipinKumar-fu3qm
    @VipinKumar-fu3qm 3 ปีที่แล้ว

    how to speech skolo chat bot connect the data base given response.. plz tell me

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      We did not cover that in this Tutorial

  • @robiesuarez7730
    @robiesuarez7730 2 ปีที่แล้ว

    What type of neural network architecture is this? In other source it discussed that this is RNN-LSTM. But I think this is not a RNN-LSTM.

    • @SkoloOnline
      @SkoloOnline  2 ปีที่แล้ว

      I dont know what you are talking about

    • @lsfrdev7768
      @lsfrdev7768 2 ปีที่แล้ว

      @@SkoloOnline thats mean you are a script kid

    • @tomcat9761
      @tomcat9761 2 ปีที่แล้ว

      This is just a simple Neural network. Not RNN. Multi layer perceptron.

  • @kodistamana6059
    @kodistamana6059 3 ปีที่แล้ว +1

    Are you from SA?

  • @mathewsjoy8464
    @mathewsjoy8464 3 ปีที่แล้ว +1

    @Skolo Online Hello! does anyone know a way so that once i make this chatbot i can actually embed the chatbot into a small icon on the corner of my website that once pressed will enlarge and i can talk to the bot, without having the bot on its own separate page? Thanks

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      Its JS and HTML coding required for that, I will do a tutorial on it perhaps in the future, stay tuned with your notifications so you don't miss it when i do

    • @mathewsjoy8464
      @mathewsjoy8464 3 ปีที่แล้ว

      @@SkoloOnline ok thank you! I had another quick question can we add like pictures next to the question and response I tried to use a tag in the jquery but it just gave me a missing , error .

  • @AKumar1992
    @AKumar1992 3 ปีที่แล้ว

    is there an easy way of implementing conversational flow? im thinking of doing a mental health chatbot, but i want the chatbot to ask a series of questions where the user will then have to select boxes

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      It is possible, speak to a developer to assist - this is going to be more involved than the videos I post.

  • @spotnuru83
    @spotnuru83 2 ปีที่แล้ว

    This is really nice, thank you for the tutorial here, I was just wondering if you create one where the context is maintained across multiple chat sentences

    • @SkoloOnline
      @SkoloOnline  2 ปีที่แล้ว +1

      Feel free to fork the code and include that

  • @magentaIX
    @magentaIX 2 ปีที่แล้ว

    Nice video, can I use Pyttsx3 on this model

  • @PerksByPearl
    @PerksByPearl 3 ปีที่แล้ว +1

    Class is in session

  • @costinpetrea1464
    @costinpetrea1464 3 ปีที่แล้ว

    I am trying to make my chatbot communicate with my server, so I am actually deploying the chatbot in production, but I don't get any answer from the chatbot. Also the server is on Apache2 and the website is built on PHP. Currently the chatbot is installed on a subdomain, I have now 2 weeks since I fail in making it work.
    Did you actually used your chatbot on a real webserver, and if so how did you make it work? would be nice if you could help me with this issue.

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      I did everything on the screen .... but my environment was different, I was on Ubuntu and python. There are some differences between development and production - maybe I will do a production tutorial in the future

  • @SrushtiGotekar
    @SrushtiGotekar 3 ปีที่แล้ว

    I need your help my chatbot not accepting response ..why?

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      I dont know, just follow the code exactly - I cant see your code

    • @anmjubaer
      @anmjubaer 2 ปีที่แล้ว +1

      May be you put static folder in some other folder like templates

  • @chayondhar4740
    @chayondhar4740 ปีที่แล้ว

    Hello mam I want this bot to answer from multiple tag like what is your name and what do you do? but it will only answer its name.But I want this like it will answer its name and also tell what can it do.How do I do this?

  • @kaibaalex
    @kaibaalex ปีที่แล้ว

    "I need help with the following code as it throws an error when I run it. I have tried everything but couldn't find a solution."
    Traceback (most recent call last):
    File "D:\python-deep-learning-chatbot-main\python-deep-learning-chatbot-main\python-deep-learning-chatbot\chatbot.py", line 68, in
    training = np.array(training)
    ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (10, 2) + inhomogeneous part.
    10 documents
    1 classes ['HCQT']
    13 unique lemmatized words ['anyone', 'are', 'day', 'ekse', 'good', 'hello', 'hey', 'hi', 'hola', 'how', 'is', 'there', 'you']

    • @SkoloOnline
      @SkoloOnline  ปีที่แล้ว

      It is such an old code, try ChatGPt the error

  • @TheBornfreetofly
    @TheBornfreetofly 3 ปีที่แล้ว

    Thanks this is a great tutorial , how do we connect the chatbot to database mysql for e.g. to store chat history & intents.json in the database , would be nice if you can point me in the right direction ? Thanks

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว +1

      You can just add database code in there - perhaps I will cover it in a future tutorial

  • @gabrielkim4271
    @gabrielkim4271 3 ปีที่แล้ว +1

    def getResponse(ints, intents_json):
    tag = ints[0]['intent']
    list_of_intents = intents_json['intents']
    for i in list_of_intents:
    if(i['tag'] == tag):
    result = random.choice(i['responses'])
    break
    else:
    result = "Type Something!"
    return result
    is this line working?

  • @sudharsanpaskaran
    @sudharsanpaskaran 3 ปีที่แล้ว

    Hi, when i run app.py, why did (words.pkl, classes.pkl, chatbot_model.h5) files appear ?

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      The files are created by the code when the model is trained and developed (by model i mean the AI model - called chatbot_model.h5), they are used later for making predictions.

  • @AKumar1992
    @AKumar1992 3 ปีที่แล้ว

    Hi, great video :) how can we implement code so that, whenever the user asks something that isn't within the intents e.g "dsdefefeffsdfd" it throws a message "Sorry i do not understand please ask another question"

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว +1

      Yes, you can definitely do that. When you send your question, you can check for a match with the specified intents - if there is no match, then you return your standard response.

  • @ZeeshanAhmad-tu5yv
    @ZeeshanAhmad-tu5yv 3 ปีที่แล้ว

    Source code

    • @SkoloOnline
      @SkoloOnline  3 ปีที่แล้ว

      github.com/tatiblockchain/python-deep-learning-chatbot

  • @alihusham1560
    @alihusham1560 3 ปีที่แล้ว

    4:29 two years old does not even speak