Create A Chatbot GUI Application With Tkinter - Python Tutorial

  Рет қаралды 102,133

Patrick Loeber

Patrick Loeber

Күн бұрын

Пікірлер: 132
@patloeber
@patloeber 3 жыл бұрын
If you like this, you might also enjoy this video where I deploy the chatbot using Flask: kzbin.info/www/bejne/l2Sac39mqNl8q68 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! 🙏
@chaseo3932
@chaseo3932 Жыл бұрын
This is great. My first application with Tkinter, made it easy to follow along and great explanations!
@kibromgidey9133
@kibromgidey9133 2 жыл бұрын
Helped me Much!
@ridaali3113
@ridaali3113 3 жыл бұрын
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.
@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!
@abhishekprakash9803
@abhishekprakash9803 Жыл бұрын
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
@nikolaskleanthous5199
@nikolaskleanthous5199 3 жыл бұрын
how can i make it response with API
@DevendraYadav-sf6ry
@DevendraYadav-sf6ry 3 жыл бұрын
Can I integrate this to any website
@patloeber
@patloeber 3 жыл бұрын
not this but checkout my latest video, there I show how to deploy it to any website
@oz9985
@oz9985 2 жыл бұрын
sadly for long texts the scrollbar is in the way
@kmaltman
@kmaltman 6 ай бұрын
See my fix in the above post
@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 жыл бұрын
yes because some random youtube guy is definitely going to tell you literally everything about python in a single comment
@elonsechelon
@elonsechelon 3 жыл бұрын
Thank you, was actually looking for this, your original chatbot tutorial was the best I've found on KZbin so this is very much appreciated! :D
@patloeber
@patloeber 3 жыл бұрын
Thanks! Yeah I figured the original bot only in the terminal was not super cool :D
@charliescott7474
@charliescott7474 3 жыл бұрын
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 :)
@this.is.nimishka
@this.is.nimishka 7 ай бұрын
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.
@rajivram9665
@rajivram9665 3 жыл бұрын
can you upload the "app.py" file in github?
@sakshideshpande4128
@sakshideshpande4128 Жыл бұрын
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 .
@himanshupatil4020
@himanshupatil4020 2 жыл бұрын
I tried everything about unable to convert it to application.... everytime I get error no module name json
@HamidrezaBahrami-f8p
@HamidrezaBahrami-f8p 9 ай бұрын
Hi. Could you please make a tutorial on how to create a streamlit GUI for this Ai chatbot?
@hrithikhazarika3488
@hrithikhazarika3488 2 жыл бұрын
how can i integrate the chatbot to telegram
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Wow.... Nice and new style of tutorial
@patloeber
@patloeber 3 жыл бұрын
thanks Tomi. Do I have a new style :D ?
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
@@patloeber not really... I meant new type of tutorial, because you've never done a tutorial on GUI before
@devadharshan6328
@devadharshan6328 3 жыл бұрын
Hi thanks for the course ! can u help to connect this bot with django and react frame works.Thanks
@AcademyOmen
@AcademyOmen 3 жыл бұрын
Yeah .. great idea
@patloeber
@patloeber 3 жыл бұрын
might be a good project for the future :)
@hardyben
@hardyben Жыл бұрын
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
@kumarkoushikt2499
@kumarkoushikt2499 3 жыл бұрын
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.
@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
@nwokolobueze7291
@nwokolobueze7291 3 жыл бұрын
What an awesome tutorial. I love your prowess when it comes to using already existing modules and methods.
@V.HARSHABTech_AIML
@V.HARSHABTech_AIML 6 ай бұрын
how to run the program in vs code?
@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?"
@lakshithjaiswal3374
@lakshithjaiswal3374 3 жыл бұрын
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
@lakshithjaiswal3374
@lakshithjaiswal3374 3 жыл бұрын
plz reply
@jayapandey6536
@jayapandey6536 Жыл бұрын
Reply
@senanuremirler6867
@senanuremirler6867 2 жыл бұрын
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 жыл бұрын
I have one: kzbin.info/www/bejne/sF6WeoeOnbeZgac
@senanuremirler6867
@senanuremirler6867 2 жыл бұрын
@@patloeber thank you 💖
@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 ?
@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
@arijitbanerjee6229
@arijitbanerjee6229 10 ай бұрын
Thank you sir!! Actually I was finding exactly this kind of video. 🎉❤❤
@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.
@djsid651
@djsid651 2 жыл бұрын
Can I make the Chatbot run another Python Script in my computer? Can you please show me how to do it?
@sohairmahmoud8531
@sohairmahmoud8531 3 жыл бұрын
How can I deploy this chat on mobile app using flutter ? Anyone can help me please with any tutorials ?
@mohitnarwani4821
@mohitnarwani4821 2 жыл бұрын
Sir when I am trying to convert it into application with pyinstaller ...I am getting error no module name json
@itmesneha
@itmesneha 2 жыл бұрын
hello! how do i make the bot send a link as a response?
@MarkAlmeida-Cardy
@MarkAlmeida-Cardy Жыл бұрын
Can you provide details on how to run the UI in docker hosted on Windows? :)
@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
@Cablamgaming2
@Cablamgaming2 Жыл бұрын
How would I get the Chatbot to respond with a hyperlink
@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
@ManiKanta-rs3gl
@ManiKanta-rs3gl 2 жыл бұрын
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
@Param3021
@Param3021 3 жыл бұрын
Nice tutorial But really, tkinter apps looks good in Mac compare to windows
@patloeber
@patloeber 3 жыл бұрын
Yes, true
@umairarshad7043
@umairarshad7043 3 жыл бұрын
Brillant work, sir i have a question can we train data to other languages like urdu, arabic etc
@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?
@dimaschandraw.p2896
@dimaschandraw.p2896 3 жыл бұрын
Great tutorial, but how to detect entities like city name, peoples name, and etc on your chatbot model ? thanks
@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
@ktrivikram1311
@ktrivikram1311 2 жыл бұрын
What extension are you using for terminal? it looks clean. BTW nice tutorial as always.
@sakilahmed6788
@sakilahmed6788 3 жыл бұрын
Please make a video on how to download and add dataset in our chatbot
@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 4 күн бұрын
have you fixed it yet? I have trouble like you and i don't know how to fix it
@franciskariuki3603
@franciskariuki3603 2 жыл бұрын
Hello how can you record chats in a txt document?
@kingsleymbonu8370
@kingsleymbonu8370 3 жыл бұрын
Can you implement python chatbot on joomla website
@oz9985
@oz9985 2 жыл бұрын
is it possible to deploy this on a website ?
@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
@i.arcturus
@i.arcturus Жыл бұрын
thank you! this has helped me twice already
@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 :)
@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
@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 6 ай бұрын
@@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 *******************************************
@stu8924
@stu8924 Жыл бұрын
Thank you so much, great series :)
@adarshkrishnan3699
@adarshkrishnan3699 2 жыл бұрын
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
@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
@nehabehera2344
@nehabehera2344 2 жыл бұрын
How can we add url as response??
@sourabhjadhav4621
@sourabhjadhav4621 2 жыл бұрын
This is a beautiful tutorial, Thanks a lot for sharing mate !!
@itsdaniyal4600
@itsdaniyal4600 Жыл бұрын
what is data.pth purpose?
@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 жыл бұрын
nice! glad you like it :)
@c0mplicated
@c0mplicated 2 жыл бұрын
wallpaper link?
@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
@pewdiepie5245
@pewdiepie5245 2 жыл бұрын
How to add speech to text
@harshitapusarla5160
@harshitapusarla5160 2 жыл бұрын
please upload code sir
@BiologyBased
@BiologyBased 3 жыл бұрын
I keep getting stuck at something called serialization, idk what to do ?
@patloeber
@patloeber 3 жыл бұрын
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 !
@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 жыл бұрын
wrong indentation (I recommend to use always 4 spaces)
@himantadihingia7609
@himantadihingia7609 3 жыл бұрын
@@patloeber yes I fixed it. Thanks for ur reply
@patloeber
@patloeber 3 жыл бұрын
@@himantadihingia7609 awesome!
@cutiserzero963
@cutiserzero963 2 жыл бұрын
Thank you
@danyalzia6958
@danyalzia6958 3 жыл бұрын
Great video. Can you also please tell us the theme that you are using in VSCode?
@patloeber
@patloeber 3 жыл бұрын
thanks! Night Owl
@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
@swapnilgupta1455
@swapnilgupta1455 3 жыл бұрын
can i put this chatbot into heroku cloud
@patloeber
@patloeber 3 жыл бұрын
not this one but check out my latest video :)
@yogeshvasu5752
@yogeshvasu5752 3 жыл бұрын
It is Possible show images for responses
@patloeber
@patloeber 3 жыл бұрын
haven't tried this but it should be possible
@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
@erichelbig6791
@erichelbig6791 3 жыл бұрын
Perfektes timing, wollte gerade genau das für eine Projektarbeit machen :D
@patloeber
@patloeber 3 жыл бұрын
Nice! Viel Erfolg!
@therocketmanprince682
@therocketmanprince682 3 жыл бұрын
Nice video
@patloeber
@patloeber 3 жыл бұрын
Thanks
@pythongui5199
@pythongui5199 3 жыл бұрын
Very Nice
@patloeber
@patloeber 3 жыл бұрын
Thanks
@iwellbreastfed
@iwellbreastfed Жыл бұрын
it didnt work
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 72 М.
Intelligent AI Web Chatbot From Scratch in Python
51:21
NeuralNine
Рет қаралды 8 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 40 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,7 МЛН
Create a LOCAL Python AI Chatbot In Minutes Using Ollama
13:17
Tech With Tim
Рет қаралды 68 М.
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 74 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Create a GUI app with Tkinter - Step by Step Tutorial
23:56
Python Simplified
Рет қаралды 614 М.
Get Started in Pygame in 10 minutes!
10:19
Coding With Russ
Рет қаралды 332 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Tutorial | Chat with any Website using Python and Langchain (LATEST VERSION)
1:21:13
Alejandro AO - Software & Ai
Рет қаралды 65 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 40 МЛН