Simple Machine Learning GUI App with Taipy and Tensorflow

166,358
0
Published 2023-11-24
Today we will create a beautiful machine learning GUI application! We will design a web interface, where an image classifying neural network lives 🤖🤖🤖
We will use an open source library called Taipy for our stylish Python GUI and a framework called TensorFlow for all the machine learning tasks.
By the end of this tutorial, you will understand how to process image data for machine learning tasks, you will learn how to create and save your own image processing neural networks, as well as wrapping them in a user-friendly Python website!

⭐ For more information about the Taipy GUI, checkout their GitHub repo:
github.com/Avaiga/taipy

🎥 RELATED TUTORIALS 🎥
----------------------------------------------------------
⭐ Anaconda Beginners Guide for Linux and Windows:
   • Anaconda Beginners Guide for Linux an...  
⭐ If _name_ == "__main__" for Python Developers:
   • If __name__ == "__main__" for Python ...  
⭐ Introduction to Neural Networks:
   • Neural Network Simply Explained - Dee...  
⭐ NumPy Arrays:
   • Ultimate Guide to NumPy Arrays - VERY...  
⭐ NumPy Operations:
   • NumPy Operations - Ultimate Guide to ...  
⭐ Introduction to Pillow:
   • Image Processing with Pillow - a Pyth...  

⏰ TIME STAMPS ⏰
----------------------------------------------------------
Part 1. Graphic Interface
00:00 - 01:08 - introduction
01:08 - 03:44 - basic Taipy GUI
03:44 - 04:41 - basic HTML webpage
04:41 - 05:02 - basic Markdown webpage
05:02 - 06:23 - image control component
06:23 - 06:56 - styling with Python
06:56 - 07:37 - file selector control component
07:37 - 08:41 - text and line breaks
08:41 - 09:57 - wireframe review and refactoring
09:57 - 13:03 - updating components on state change
13:03 - 14:43 - indicator control component
Part 2. Machine Learning
14:43 - 19:21 - create your own neural network
Part 3. Put it Together
19:21 - 20:54 - load neural network
20:54 - 23:54 - process user provided image
23:54 - 26:04 - make prediction
26:04 - 29:16 - display prediction on GUI
29:19 - 30:51 - test complete app

💻 STARTER FILES 💻
-----------------------------------------------------------
github.com/MariyaSha/ml_gui_app

⚡TEST THE LIVE APP ⚡
-----------------------------------------------------------
classifier.taipy.cloud/

☁️ DEPLOY YOUR OWN APP ☁️
-----------------------------------------------------------
You can host your app for free on Taipy's cloud (it will run for 2hrs every day, but you can always upgrade).
1️⃣ Step 1. Revise the requirements.txt file to include ONLY the following lines (no versions needed, just the names of the libraries, and please erase everything else):
taipy
tensorflow
pillow
numpy
2️⃣ Step 2. rename classifier.py to main.py.
3️⃣ Step 3. wrap the following files in a zip archive:
- main.py
- baseline.keras
- logo.png
- placeholder_image.png
4️⃣ Step 4: sign up to Taipy cloud: cloud.taipy.io/
5️⃣ Step 5: add a machine
6️⃣ Step 6: add an app to your machine, upload the zip archive from step 3.
7️⃣ Step 7: wait a bit... and your app is LIVE!!! 🤩🤩🤩

🤝 Connect with me 🤝
-----------------------------------------------------------
🔗 Github:
github.com/mariyasha
🔗 Discord:
discord.com/invite/wgTTmsWmXA
🔗 LinkedIn:
ca.linkedin.com/in/mariyasha888
🔗 Twitter:
twitter.com/mariyasha888
🔗 Blog:
www.pythonsimplified.org/

💳 Credits 💳
-----------------------------------------------------------
⭐ Beautiful titles, transitions, sound FX:
mixkit.co
⭐ Beautiful icons:
flaticon.com
⭐ Beautiful graphics:
freepik.com

#python #pythonprogramming #machinelearning #artificialintelligence #datascience #tensorflow #programming #coding #application #neuralnetworks #ml #ai #technology #computer #computerscience

All Comments (21)
  • @pythonpeng7018
    This video shows significant improvement, and I can truly feel the difference. I used to watch your introductory Python course, which, honestly, made me a bit drowsy. However, this video has completely grabbed my attention. The choice of a more challenging topic, coupled with a web page, is exactly what I needed to engage with machine learning without feeling overwhelmed. Your creative blend of machine learning and Python GUI is both refreshing and informative.
  • @cryptowitcher
    Your simplified approach to teaching is fantastic! The hands-on practice and relatable examples truly make these subjects easier to grasp. Thank you for creating an engaging learning environment that encourages exploration and experimentation.
  • @ocramnodroc
    You did a great job of presenting the material and you outshine technical educators with your lack of monotone speech. Very well done and you absolutely kept the energy up for the whole video. You did something that's actually hard to do and is rarely seen in this industry. Yay!
  • @setyoufree2726
    The joy, smile and clear pronounce you bring during your tutorial make everything looked simple. Really love to learn from you... 🎉
  • @r3xxb0bb
    You're a good teacher. Thank you for doing this!
  • @_isDev
    she did it again! great work! thank you!
  • I am very surprised that this channel has not been fed to me yet. Love the content!!
  • @MogensBLaursen
    Excellent walk-through - really love your fast-paced style
  • @jonathanokellox
    please please please make us a complete Taipy tutorial, please
  • @lt3lt3lt3
    I made my first ml project today because of what you did here, thank you.
  • @user-gt3dl8nj4w
    Been following all the tutorials,,they are all well presented and made me have a real passion to python and coding in general😇
  • @shawonshovon226
    You helped me fall in love with Python. Thank you for teaching me!
  • This video is giving me multiple ideas for new projects. This is indeed Python Simplified!
  • @go.battle
    Learning Python right now and aiming to learn more languages your videos are helpful, so you gain my subscription
  • @gerardcubaka342
    You are the best, I love your content and your voice. Thank you very much
  • @davidtindell950
    GREAT! THANK YOU!! We did not know about Taipy and how to setup interfaces to our TensorFlow projects. Next, we will try it with PyTorch !
  • @yacahumax1431
    Amazing tutorial. Thank you. In one tutorial you show me more about AI than any other I have seen.
  • This was a really inspiring video for my projects. As a molecular biologist, my knowledge of artificial intelligence is very limited. However, this video gave me the idea that it might be possible to design a neural network to define why we are human. If one day I achieve this feat, I will be immensely grateful for your teachings.
  • @adeoluwaoyin
    This is by far the best video I’ve seen on YouTube because it literally just saved my life. I’m an MSc student and my deep learning was to build cnn model that classifies waste images. My next step is deployment and I’ve been everywhere. I stumbled upon this video and i wish i can meet you to say thank you 😢. God bless you. This is super amazing. The details and explanation is extraordinary.