Create A Chatbot GUI Application With Tkinter - Python Tutorial

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

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

  • @this.is.nimishka
    @this.is.nimishka 8 หลายเดือนก่อน +1

    Your chatbot tutorial was absolutely brilliant! I am grateful for the knowledge you shared with us. I gained a lot of valuable insights and feel confident in my ability to create a chatbot now. Thank you for your guidance and expertise.

  • @elonsechelon
    @elonsechelon 3 ปีที่แล้ว +19

    Thank you, was actually looking for this, your original chatbot tutorial was the best I've found on TH-cam so this is very much appreciated! :D

    • @patloeber
      @patloeber  3 ปีที่แล้ว +2

      Thanks! Yeah I figured the original bot only in the terminal was not super cool :D

    • @swankyshivy
      @swankyshivy 20 วันที่ผ่านมา +1

      can i have the link to that tutorial please thanks

    • @elonsechelon
      @elonsechelon 20 วันที่ผ่านมา

      This was it, it's multiple parts:
      th-cam.com/video/RpWeNzfSUHw/w-d-xo.htmlsi=eRZAOgdga0FE2Z2q

  • @nwokolobueze7291
    @nwokolobueze7291 3 ปีที่แล้ว +5

    What an awesome tutorial. I love your prowess when it comes to using already existing modules and methods.

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

    This is great. My first application with Tkinter, made it easy to follow along and great explanations!

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

    I watched your PlayList about the ChatBot with Python, my question is, how can i make it so the chatbot also considers the context of the chat when calculating the intent, for example if you talked alot about the intent/topic of food like this for example: "Hey what can you tell me about the list of dishes that your restaurant serves" "Answer" "What is the most expensive one?"

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

    I appreciate affords you took to explain all the concepts thoroughly that very useful to make a chatbot....but I just want to know how can I add it to my website .

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

    Thank you sir.
    U just completed the UI part for PyTorch bot.
    That bot helped me alot in learning!

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

      nice! glad you like it :)

  • @HamidrezaBahrami-f8p
    @HamidrezaBahrami-f8p 10 หลายเดือนก่อน

    Hi. Could you please make a tutorial on how to create a streamlit GUI for this Ai chatbot?

  • @charliescott7474
    @charliescott7474 3 ปีที่แล้ว +5

    This is a great tutorial - thanks!! Do you have any guidance on connecting this to a DB to get the intents? Would be great to see :)

    • @swankyshivy
      @swankyshivy 20 วันที่ผ่านมา

      yes connecting to a database will be ideal. please expand this app and make a video on that

  • @i.arcturus
    @i.arcturus 2 ปีที่แล้ว

    thank you! this has helped me twice already

  • @CodeWithTomi
    @CodeWithTomi 3 ปีที่แล้ว +2

    Wow.... Nice and new style of tutorial

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

      thanks Tomi. Do I have a new style :D ?

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

      @@patloeber not really... I meant new type of tutorial, because you've never done a tutorial on GUI before

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

    Thank you sir!! Actually I was finding exactly this kind of video. 🎉❤❤

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

    This is a beautiful tutorial, Thanks a lot for sharing mate !!

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

    Brillant work, sir i have a question can we train data to other languages like urdu, arabic etc

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

    i have followed all the steps,but it is showing that get response and bot name are not accessable....could you be able to tell me whats the problem because i have tried all the silitions available online but i am unable to resolve the issue.

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

    can you upload the "app.py" file in github?

  • @MarkAlmeida-Cardy
    @MarkAlmeida-Cardy ปีที่แล้ว

    Can you provide details on how to run the UI in docker hosted on Windows? :)

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

    how can i integrate the chatbot to telegram

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

    I got everything working just fine. Also, I am going to search on how to link such chatbot with a react front end.

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

    Please make a video on how to download and add dataset in our chatbot

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

    What extension are you using for terminal? it looks clean. BTW nice tutorial as always.

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

    I tried everything about unable to convert it to application.... everytime I get error no module name json

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

    I want to know how to make the Bot speak and accept user input from a microphone. If you could point me in the right direction that would be great!

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

    Thank you so much, great series :)

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

    Perfektes timing, wollte gerade genau das für eine Projektarbeit machen :D

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

      Nice! Viel Erfolg!

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

    I love your videos ,they ve been a great help for me! Do you have any tutorials or info on how to make one of these chatbots with an ordering system and storing info given to the chatbot in a database?I would be willing to pay for such a tutorial :)

  • @devadharshan6328
    @devadharshan6328 3 ปีที่แล้ว +2

    Hi thanks for the course ! can u help to connect this bot with django and react frame works.Thanks

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

      Yeah .. great idea

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

      might be a good project for the future :)

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

    hello, Patrick
    I have a question:
    self.msg_entry = Entry(bottom_label, bg="#2C3E50", fg=TEXT_COLOR, font=FONT)
    self.msg_entry.place(relwidth=0.74, relheight=0.06, rely=0.008, relx=0.011)
    why the relheight equals to 0.06??????
    In my opinion, relheight means the relative height to the parent container, which is bottom_label,
    so the relheight should be 0.9 or 0.8??? I think 0.06 is too small.
    I can't understand, looking forward to your reply, thanks

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

    can you make a tutorial with audio input please, i find how to convert voice to text but i couldnt implement to the chatbot

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

      I have one: th-cam.com/video/z-3ITXhRfKE/w-d-xo.html

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

      @@patloeber thank you 💖

  • @dimaschandraw.p2896
    @dimaschandraw.p2896 3 ปีที่แล้ว

    Great tutorial, but how to detect entities like city name, peoples name, and etc on your chatbot model ? thanks

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

    Another question, I downloaded the code and it has 0 errors now and it runs perfectly fine and says "hi, pycharm" but the window doesnt pop up, I dont understand ?

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

    How would I get the Chatbot to respond with a hyperlink

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

    Thank you for this tutorial.
    I was wondering if you could make a video about vs code extensions that will help us :)

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

      I already have one on my channel, but try to do another one in the future

  • @V.HARSHABTech_AIML
    @V.HARSHABTech_AIML 8 หลายเดือนก่อน

    how to run the program in vs code?

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

    bro can u help me i wrote this code in vs code but when i run app. py it runs only in terminal and the gui window doesnt appear i have properly installed tkinter still it runs in terminal only

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

    when I run app.py I am not able to get the GUI pop up, though the execution went fine.

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

      You might be missing an important line of code.

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

    Hello, this chatbot is awesome. I was wondering if you could make also the web type of chatbot? Thank you.

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

      better off learning web development or django

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

    Great video. Can you also please tell us the theme that you are using in VSCode?

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

      thanks! Night Owl

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

    Can I make the Chatbot run another Python Script in my computer? Can you please show me how to do it?

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

    Sir when I am trying to convert it into application with pyinstaller ...I am getting error no module name json

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

    sir when I am importing that function(chatbot) on my main program it will show error...
    self.app=ChatApplication(self.new_window)
    TypeError: __init__() takes 1 positional argument but 2 were given

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

    Helped me Much!

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

    Hi! thanks for tutorial. I need to know how can I extract the word in the patterns that match the word in the sentence. For Example for tag in the code you have "tag = tags[predicted.item()]".
    Is there any way to do this?

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

    how to run in as a webserver...........when i try to run gui ..in docket container....gui is not workih i want to run tk gui in web server how we do that

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

    is it possible to deploy this on a website ?

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

    hello! how do i make the bot send a link as a response?

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

    in my case when i run app.py it doesn't gives me tkinter screen it gives me command chatbot which we have done till part4 why this issue happens can you help me

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

    Hello how can you record chats in a txt document?

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

    Your code works very but I can't seem to implement my own chat response into the GUI
    I actually created a chat bot that ran only on my terminal but now I want to run in as a GUI using tkinker

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

      have you fixed it yet? I have trouble like you and i don't know how to fix it

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

    Thank you

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

    Nice tutorial
    But really, tkinter apps looks good in Mac compare to windows

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

    How can we add url as response??

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

    what is data.pth purpose?

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

    The idea of using Python GUI is really cool. However, I just don't understand why Python GUI interface still so "1995". Why we can't have more modern design/layout? I know that Python is NOT a design thing. But, will be so nice to use Python WITH a cool layout. Do you know what I mean? I know that there's a way to use HTML to create a layout and use with python and kind converto do an app. I forgot the name of this "package". Anyway. I hope that we can have better Python GUI soon. Even so, Thank You for your content man. You have great stuffs here.

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

      yeah I absolutely know what you mean :D

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

    Hi. I'm facing problem to create an independent executable file(combinig all trained data). What code shall I put on terminal ?

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

      I think you should run the train.py in the terminal using the python train.py command

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

      Did you find the solution...I don't think so you can convert json file

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

    Is there a way we can add an image icon on the left of the chatbot response instead of having "sam" ?

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

      woah that's a great idea, were u able to implement it??? please tell me also

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

    how can i make it response with API

  • @patloeber
    @patloeber  3 ปีที่แล้ว +7

    If you like this, you might also enjoy this video where I deploy the chatbot using Flask: th-cam.com/video/a37BL0stIuM/w-d-xo.html
    And check out Tabnine, the FREE AI-powered code completion tool I used in this video: www.tabnine.com/?.com&PythonEngineer *
    ----------------------------------------------------------------------------------------------------------
    * This is a sponsored link. You will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

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

    How to add speech to text

  • @ManiKanta-rs3gl
    @ManiKanta-rs3gl 3 ปีที่แล้ว

    hi! how can we add URL as response?
    something to change in json intent file? appreciate your help.. thanks :)

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

      hi,, did you find any solution to implement url as a response. please tell me if u did

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

    Can you implement python chatbot on joomla website

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

    i am receiving an error no such file directory data.pth please tell me how to fix it

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

      you need to clone the repo and do the training, then it save the file to data.pth

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

    I installed PyTorch and it runs on cmd but shows an error at import torch when I run train.py
    Please help.

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

      what Error? maybe you don't use the correct virtual environment

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

    wallpaper link?

  • @DevendraYadav-sf6ry
    @DevendraYadav-sf6ry 3 ปีที่แล้ว

    Can I integrate this to any website

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

      not this but checkout my latest video, there I show how to deploy it to any website

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

    Hello sir when I run the program
    It's showing error that module not found
    : No module name 'chat'
    Can u please help me out

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

      have your issue resolved?

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

      yeah, you need the chatbot files name to that part

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

    is it also possible to make the text returned by bot as a speech?

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

      i believe it is by making the response of the bot speak with the pyttsx3 module

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

      @@eepikki i have tried that...but my problem is speech is coming first..after that text is getting displayed

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

    It is Possible show images for responses

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

      haven't tried this but it should be possible

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

    can i put this chatbot into heroku cloud

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

      not this one but check out my latest video :)

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

    I keep getting stuck at something called serialization, idk what to do ?

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

      you need to train the model and serialize + save it correctly (you can use the code on github)

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

      @@patloeber Okay thanks a lot !

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

    How can I deploy this chat on mobile app using flutter ?
    Anyone can help me please with any tutorials ?

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

    sadly for long texts the scrollbar is in the way

    • @kmaltman
      @kmaltman 7 หลายเดือนก่อน

      See my fix in the above post

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

    Is it possible to add back ground image in tkinter

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

      yes:
      background_image=tk.PhotoImage(...)
      background_label = tk.Label(parent, image=background_image)

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

      This is not working

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

    how can i fix this
    File "app.py", line 69
    self.msg_entry.delete(0, END)
    ^
    IndentationError: unindent does not match any outer indentation level

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

      wrong indentation (I recommend to use always 4 spaces)

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

      @@patloeber yes I fixed it. Thanks for ur reply

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

      @@himantadihingia7609 awesome!

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

    Very Nice

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

    please upload code sir

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

    Am currently trying to see how to make long texts continue on a different line. It might just be a single argument, it anyone knows, please feel free to reply to me. Thanks in ady

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

      I think the scroll bar is what is blooking the text.

    • @kmaltman
      @kmaltman 7 หลายเดือนก่อน

      @@nwokolobueze7291 Try this if still working on project, I have totally revised the app, this works and is smoother, I think from memory you will be able to just back up the orig (in case) cut the relevant part and replace with this
      ### ***************** TEXT_WIDGET with NEW scroll bar WORKS BETTER & does not block text ********************
      self.text_widget = Text(self.window, width=20, height=2, bg="#17202A", fg="#EAECEE", ### Text window size colour etc
      font="Verdana 12", padx=5, pady=5) ### Font and x and y padding
      self.text_widget.place(relheight=0.745, relwidth=1, rely=0.08) ### 75% of the space used by this widget
      self.text_widget_scrollbar = Scrollbar(self.text_widget, bd=0)
      self.text_widget_scrollbar.pack(fill=Y, side=RIGHT)
      self.text_widget = Text(self.text_widget, yscrollcommand=self.text_widget_scrollbar.set, state=DISABLED,
      bd=1, padx=6, pady=6, spacing3=8, wrap=WORD, bg="#17202A", fg="#EAECEE", font="Verdana 12", relief=GROOVE,
      width=10, height=1)
      self.text_widget.configure(cursor="arrow", state=DISABLED) ### cursor > when over widget, DISABLE STOPS people typing text here
      self.text_widget.pack(expand=True, fill=BOTH)
      self.text_widget_scrollbar.config(command=self.text_widget.yview)
      ### *********************************************** bottom label *******************************************

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

    Nice video

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

    can you give me all the details about frontend and backend. What is json and everything?

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

      i am new to python

    • @Tom-py9vc
      @Tom-py9vc 3 ปีที่แล้ว +1

      yes because some random youtube guy is definitely going to tell you literally everything about python in a single comment