- 13
- 17 235
Code Yoga
Приєднався 22 тра 2024
Dive into the world of computer science and programming with our comprehensive educational content and video tutorials. At Code Yoga, we simplify complex topics, making coding accessible for everyone. Whether you're a beginner looking to learn the basics or an advanced coder aiming to refine your skills, our channel covers a wide range of subjects including algorithms, data structures, system design, and various programming languages.
AI Image Recognition Using Python | No Internet Required
Learn how to perform image recognition using AI completely offline and for free using the LLaVA model with Ollama! This step-by-step tutorial will guide you through installing the Ollama package, downloading the LLaVA model, and interacting with it using Python to perform tasks like detailed image descriptions and hashtag generation-all without needing an internet connection.
Key topics covered in this video:
1. Ollama LLaVA model tutorial
2. Image recognition AI offline
3. Offline AI with Ollama
4. LLaVA Python tutorial
5. Free AI image recognition tool
6. Automate hashtags for social media
Code & Resources:
Find the code and resources here: github.com/debeshm/Local-Python-AI-Image-Recognition
#pythontutorial
#pythonprojects
#beginnercoding
#imagerecognition
#imageai
#llama
#image
#ollama
#llama3
#aichatbots
#stepbystepguide
#pythondevelopment
#programmingtutorial
#chatgpt
#openai
#programming
#python
#ai
#coding
#codingtutorials
#techtutorial
#codingtutorial
#chatbottutorial
#chatbots
#chatbotgpt
#shorttutorial
#codingprojects
#aichatgpt
#aichatbot
#learntocode2024
#learnpython
00:00 Install Ollama
01:00 Choosing the model for image recognition
01:36 Install llava model on your system
02:05 Install Ollama python package
02:20 Getting image description
03:47 Getting keywords from image
📣 Support the Channel:
If this video helped you, don’t forget to like, subscribe, and leave a comment! Your support helps me continue creating valuable content like this, as this channel is not monetized.
Key topics covered in this video:
1. Ollama LLaVA model tutorial
2. Image recognition AI offline
3. Offline AI with Ollama
4. LLaVA Python tutorial
5. Free AI image recognition tool
6. Automate hashtags for social media
Code & Resources:
Find the code and resources here: github.com/debeshm/Local-Python-AI-Image-Recognition
#pythontutorial
#pythonprojects
#beginnercoding
#imagerecognition
#imageai
#llama
#image
#ollama
#llama3
#aichatbots
#stepbystepguide
#pythondevelopment
#programmingtutorial
#chatgpt
#openai
#programming
#python
#ai
#coding
#codingtutorials
#techtutorial
#codingtutorial
#chatbottutorial
#chatbots
#chatbotgpt
#shorttutorial
#codingprojects
#aichatgpt
#aichatbot
#learntocode2024
#learnpython
00:00 Install Ollama
01:00 Choosing the model for image recognition
01:36 Install llava model on your system
02:05 Install Ollama python package
02:20 Getting image description
03:47 Getting keywords from image
📣 Support the Channel:
If this video helped you, don’t forget to like, subscribe, and leave a comment! Your support helps me continue creating valuable content like this, as this channel is not monetized.
Переглядів: 744
Відео
Local AI Chatbot in Python
Переглядів 61014 днів тому
In this video, I’ll show you how to build your own chatbot using Python that runs entirely locally on your computer. No subscriptions, no internet dependency, and absolutely free! We’ll use Ollama to run large language models (LLMs) locally and integrate it with Python using LangChain. Here’s what you’ll learn in this tutorial: 1. Installing and setting up Ollama 2. Choosing the right model for...
Gemini Python API
Переглядів 436Місяць тому
In this video, I’ll walk you through how to create a simple chatbot using the Google Gemini API and Python. From generating your API key to writing code for an interactive chatbot, this tutorial covers everything you need to know to get started with Google Gemini. We’ll also explore key features like tuning API parameters to customize your chatbot’s behavior. #gemini #python #chatbot #ai #pytho...
Python vs NumPy: The Speed Showdown
Переглядів 1953 місяці тому
We dive into the performance difference between plain Python and the powerful NumPy library. We'll execute a code for both methods, measure the execution time, and compare the results. Spoiler alert: NumPy is significantly faster! Whether you're a beginner or an experienced developer, this comparison will show you the importance of using optimized libraries like NumPy for heavy computational ta...
OpenAI DALL-E API in Python: Generate, Edit, and Innovate with Images
Переглядів 6383 місяці тому
In this video, I'll guide you through using OpenAI's DALL-E API for generating and editing images. We will cover everything from setting up the API, generating images based on prompts, creating image variations, and performing image in-painting. Key Takeaways: 1. Learn how to generate images using text prompts with DALL-E 2. Understand how to create variations of existing images 3. Explore imag...
Speed Test Your Internet with Python!
Переглядів 1464 місяці тому
In this video, I'll show you how to perform an internet speed test using Python with the help of the "speedtest-cli" library. You'll learn how to install the necessary package, write the code to measure download and upload speeds, and retrieve additional information like ping and server details. Steps Covered in This Video: Install the speedtest-cli Python package. Write Python code to measure ...
How To Deploy A Flask App on Render (2024) | Flask App Free hosting
Переглядів 2,2 тис.4 місяці тому
In this video, we'll walk you through the entire process of deploying a Python Flask app on Render(render.com), a completely free and user-friendly platform for hosting your applications. Render is also an free alternative to Heroku. This guide will help you get your Flask app online in no time! In this tutorial, you'll learn: 1. How to create an account on Render.com. 2. How to set up a GitHub...
I Made A Custom Chatbot Web App! | Using Python OpenAI API and Gradio
Переглядів 1,2 тис.5 місяців тому
Today I'll show you how to create a custom chatbot web application using Python, the OpenAI API, and the Gradio Python package. Code for this tutorial : github.com/debeshm/Python-Chatbot-Web-App/blob/main/app.py Related Videos: 1. Python GPT Chatbot: ua-cam.com/video/w55C8cLWz74/v-deo.htmlsi=OrwIKMMfayxzDu2b 2. Gradio tutorial: ua-cam.com/video/zkpXOudgC1g/v-deo.htmlsi=-D0kpPKgdxzQ6HhZ In this ...
EASIEST Way to Deploy Any Python Code Online | Gradio
Переглядів 4805 місяців тому
The easiest way to deploy any Python code online using Gradio. In this step-by-step guide will show you how to transform your Python code into interactive web apps accessible from any device. You can turn any Python code into an interactive web app in just 1 minute! What You'll Learn: 1. Introduction to Gradio: Understand what Gradio is and how it simplifies deploying Python code. 2. Installing...
Python Chatbot Tutorial | Using OpenAI API to Create a Smart Chatbot
Переглядів 7 тис.5 місяців тому
Welcome to my channel! In this tutorial, I will walk you through the process of creating a chatbot using the OpenAI Python API. This chatbot will not only respond to your queries but will also remember the conversation context, providing more meaningful interactions. What You Will Learn: 1. How to create an OpenAI API key. 2. Installing the OpenAI Python package. 3. Writing a basic chat functio...
Simple HTTP Client Using Python Socket | Web Browser Working
Переглядів 2355 місяців тому
Welcome to my tutorial on creating a simple HTTP client using Python's socket module! In this video, I'll guide you through the step-by-step process of building a basic HTTP client that mimics the working of a web browser. What You'll Learn: 1. Understanding the basics of sockets in Python 2. Sending HTTP GET requests using Python sockets 3. Receiving and parsing HTTP responses 4. The role of p...
How To Deploy A Flask App on Heroku (2024)
Переглядів 3,3 тис.6 місяців тому
Welcome to our channel! In this tutorial, we'll walk you through the process of deploying a simple Flask app online using the Heroku platform. Whether you're a beginner or an experienced developer, this step-by-step guide will help you get your Python Flask app up and running in no time. Follow Us: 1. Subscribe for more tutorials on coding and system design 2. Like and share this video if you f...
Build a Python Web API in 5 Minutes | Web API with Python Flask (2024)
Переглядів 1886 місяців тому
Welcome to our channel! In this quick tutorial, I'll show you how to create a web API using Flask in Python. We'll build a simple yet powerful API that lets you view a toy inventory and add new toys to it. This video is perfect for beginners looking to get started with web development and APIs. Here's what you'll learn: 1. Setting up Flask 2. Creating endpoints for viewing and adding toys 3. Te...
I want wrapper Online gold on heroku deploy from github when you get to get hub you need to type in Wrapper Online Gold, can you please make the website please
It got patched
Ah. Thanks for letting me know. I will create a new video for the new patch.
+1
Glad my video helped you. Please subscribe if you have not yet. I am creating cool videos every week.
@@CodeYoga22524 i have subscribed your channel too :)
Great video, straight to the point. I would like to learn how to do this with short videos and also with Hollywood feature films. Do you know of any AI that can describe a video like this Ai Ollama described the image with the 3 dogs locally without using the internet? Another question: Do you know if there is any AI capable of recognizing musical styles and describing the style in a text response?
Thank you so much for your kind words! I’m glad you found the video helpful. 😊 Regarding your questions: 1. Describing Videos Locally: While Ollama focuses on images, there are AI tools like OpenAI’s Whisper for audio transcription or YOLO for object detection in video frames. To process and describe entire videos offline, you’d typically combine frame-by-frame image analysis (using tools like LLaVA or YOLO) with a video processing library such as FFmpeg. However, for Hollywood feature films or longer videos, you’ll need a good amount of system resources to handle the data locally. 2. Recognizing Musical Styles: Currently, there are AI models like Essentia and Spotify’s Annoy that can analyze audio to identify musical styles and provide metadata. These tools are often used for genre classification and can work offline with some setup. They might not provide detailed text responses like Ollama, but combining them with a natural language generation model could achieve similar results.
nice mahnnn
Glad you liked our content. Consider subscribing if you have not already for future updates
Thanks a lot my dear friend ! You helped me to deploy 2 flask projects on heroku! For those who use venv in their projects: - First of all add .gitingore file - Write .venv/ or venv/ (from what's called your directory) Good Luck!
Glad our content helped you. Consider subscribing to the channel for more updates.
You: Hii Traceback (most recent call last): File "d:\My-Coding-Stuff\Python\Coding\Oops\AI.py", line 29, in <module> chat() File "d:\My-Coding-Stuff\Python\Coding\Oops\AI.py", line 25, in chat response = get_gpt_response(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\My-Coding-Stuff\Python\Coding\Oops\AI.py", line 12, in get_gpt_response response = openai.ChatCompletion.create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Rohit Kumar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Rohit Kumar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( ^^^^^^^^^^^^^^^^^^ File "C:\Users\Rohit Kumar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Rohit Kumar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "C:\Users\Rohit Kumar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: platform.openai.com/docs/guides/error-codes/api-errors. getting error whenever I enter the prompt
After few hours link doesn't work we have to reload from render Can we apply custom time Range where there is live tail ?? And waht is maximum limit of time range like for how many hours we can use link without any down time ???
There is no such feature to apply custom time range. The free tier comes with some downtime. It also depends in the project size. If the project size is big then may be paying for the hosting would make sence.
@@CodeYoga22524 If you click on live tail there is option for custom when I click on that the current date appears and in side there is option to set time ...... After approx three to four hours my website link is not working Can you give me suggestions to deploy free for atleast 24 hours and on second day if I relod it's work again for next 24 hr
Very efficient. Thanks
Glad it was helpful!
I needed this discussion of how to enable ChatGPT to remember the previous interactions. Thank you. I also appreciate very much that this video is short and “to the point”.
Thanks for your nice words. I am glad my content helped you.
In the local host after entering user_input the output is showing error
What is the error you are receiving? Please send the error at code.yogi.channel@gmail.com. I will help you.
If i have db in my file then how to handle?
Can you elaborate on what do you mean by having db in a file? Is it that you are storing your data like in a text file or something?
what do u put on select debugger .......i m not able to use it
I am sorry but I do not understand your question. Can you explain in bit detail ? I have not used any debugger. I am happy to help more on this. Please email me the exact issue you are facing along with the screenshot at code.yogi.channel@gmail.com I will definitely respond
Ok
I will email
I have replied to your email
@@CodeYoga22524 👍👍👍
hello sir, which IDE are you using? and after installing pip, if i enter the command pip3 install openai.... it shows syntax error... could you please help me?
For IDE I am using visual studio code. Can you also try “pip install openai” command also instead of “pip3 install openai”? Let me know if you still face problems. We can work on it together to solve the issue.
@@CodeYoga22524 sure sir, thanks a lot☺️
I have replied to your email
It is asking for the credit card details even i selected the free plan.
It should not ask for credit card if you selected free as shown in the video. I just tested it on my end. Please try again. If it still persists then probably render.com has decided to collect credit card details based on the project size you want to deploy or may be requirements according to the country from where you are located to avoid abuse. Either way you should not be charged anything even if you provide credit card details. I came across community.render.com/t/free-plan-issue/6479
hey man thanks for ur guide, i was the guy who tried to host using render, i finally got it to work but i found pythonanywhere a better fit, thanks for the tutorial
Thanks a lot. Glad you were finally able to find a solution. And also glad that my videos could help. Thankyou for your continued support
hey man thanks for ur guide, i was the guy who tried to host using render, i finally got it to work but i found pythonanywhere a better fit, thanks for the tutorial
Thanks a lot. Glad you were finally able to find a solution. And also glad that my videos could help. Thankyou for your continued support
What is the pricing for MySql Database?
Render.com does not have direct support for mysql. But you can deploy your mysql DB usina a private service as shown in the documentation: docs.render.com/deploy-mysql#manual-deploy. However for this approach you may need to pay a minimum of $7. However you may choose to use Postgres DB as that has free and direct support in render.com
Yes, please do the video of permanent deployment
Thanks. I have that planned for some time. I will do it in coming months. If I receive more requests I will do it earlier. But surely it’s gonna be out.
It is asking for card detail even when selecting for free
I just verified. It won't ask for card details if you selected free. Please verify again that you selected Free tier as shown in the video. Sometimes Remder.com's UI could have bugs. But please try again and let me know how it goes. I may be able to help if it still asks for card details. If this video helped you please subscribe to my channel and like this video
chat.completion doestn work
Whats the error you are receiving? You can send me the error at code.yogi.channel@gmail.com. I might be able to assist you. Additionally you can refer the code here if it helps: github.com/debeshm/Python-Chatbot-Web-App/blob/main/app.py
thanks man definitely gonna try zis method, Vercel was hell also it didn't have mysql support, i hope render does ❤, the project i wanna upload is about a blog website, each user has to create an acct to make a post, they can edit password, profile picture, search users and view profile history too
Thanks. Render has mysql support and the project that you are trying to accomplish is definitely possible. Please like this video and subscribe to my channel if this video helped tou in any way. This will help me🙂.
@@CodeYoga22524 done ✅
Thanks
I send it on your mail
I have replied to your email with the possible solution to your problem. Hope it helps. Please support me by subscribing to my channel if you have not already. Thanks
I do same thing to deploying my project using render as you did but i have got attribute error: module app has no attribute 'app' why is it happening and also i made project using virtual environment
Please share your code(github link) with me if possible. I will take a look and get back to you.
Ensure the start command has been given correctly during creating the web service in render
@@CodeYoga22524 I didn't understand what type of start command I have given
If you share your github repo link I can take a look and help. The start command should be gunicorn <your-python-file-name>:app
Don't know why the repo link is not being sent but I am sending you the hard code . harsh0311/Micro-Blog-website
Dont use heroku use koyeb
Another popular, free and easy option to use is Render.com I have another tutorial on it as well: ua-cam.com/video/ojArD6nLXKg/v-deo.html
Does this work for the web app which has server side functionalities?
Yes, you can deploy a Flask app on Render.com that includes server-side functionalities. Render.com supports various backend operations like database interaction, user authentication, etc. making it suitable for more complex applications as well.
Bro i am unable to deploy my ml model can u please help@@CodeYoga22524
Hi @firegun1399. Please email me the link to your github repo at code.yogi.channel@gmail.com. I might take a look this week.
For this subscription is required??
OpenAI was providing free credits earlier to use the API but not anymore now. So you need to go to billing section in your OpenAI account dashboard and add some credits there. No subscription needed though. You can also set an usage limit so that you do not accidentally spend too much while calling the API. Hope this helps.
thanku mate
Glad I could help 😊
Please subscribe if you have not already. Your support will help me create better tutorials.
when i am trying to do it, it is asking to add payment method!
Ya Heroku removed its free tier. So it’s no longer free to use. My next video is about the free solution and it will be out on Thursday. Subscribe to the channel to be notified about it. If you want to continue with Heroku then in your Heroku profile you need to add your payment information.
Here is the free deployment solution: ua-cam.com/video/ojArD6nLXKg/v-deo.htmlsi=WJpTD_A5pfR5hFY0 Please Subscribe to my channel if you like this.
good tutorial but u assumed ur viewers already know about all the stuffs u did there else you would have included how to install node js, git, and touch too, i had to go through tutorial elsewhere to figure it out make it work, i had to google to find why i was running into errors, you could have just included it instead u rushed it. rn, im stuck at git commit -m and its saying Author identity unknown please tell me who you are. please reupload another video and include the breakdown of the steps needed to run it smoothly coz this video doesn't do that thank you ❤
Thanks a lot for the suggestion. It’s a good feedback. I will definitely improve my upcoming tutorials based on this feedback.
@@CodeYoga22524 ok please do so ive been able to handle my errors coz i took time to google error but not all viewers are like that they might just loose interest the moment they see the first error while following your tutorial so just explain everything to prevent that ♥️
I want Wrapper Online back on Heroku, can you please do it
Definitely. Thanks for the suggestion 👍. I am adding this topic to my list of upcoming videos. I will have it out in upcoming weeks.
@@CodeYoga22524ok
good
Thanks
Consider subscribing to the channel. I will have some more tutorial on deployment on other platforms in coming weeks.
SEND CODE HERE
Here you go: github.com/debeshm/Python-ChatGPT/blob/main/chatbot.py
@@CodeYoga22524 how do i get the web version of this
@samuelsarpong1736 Please follow this video to create the web version of chatbot: ua-cam.com/video/v8LAQHlLuRs/v-deo.htmlsi=uj7bKqLdFBt86znr
@@CodeYoga22524 thanks
Consider subscribing to my channel for more updates. I plan to add more tutorials on this topic as well.
Can you explains it in a detail, i have need a chatbot for educational purpose
You can watch these two video also so that you will get a better understanding for developing the chatbot ua-cam.com/video/w55C8cLWz74/v-deo.htmlsi=JrKDsmG_4iNFJFX5 ua-cam.com/video/zkpXOudgC1g/v-deo.htmlsi=3vpjNblU39aHAZz7
Which software you have used to run a code and also tell me how to integrate gradio in python to generate a url
I have used "Visual studio code" for this video to write code. To integrate Gradio in Python follow this video: ua-cam.com/video/zkpXOudgC1g/v-deo.htmlsi=3vpjNblU39aHAZz7. This shows the details of integrating Gradio
good how to make chat application using python
We can use sockets or web sockets to create chat applications as well. I have planned another video regarding this. It will be out soon.
Nice and informative
Thanks and welcome
Jai shree Ram
To deploy your flask app follow ua-cam.com/video/A6EJzL-pZJ8/v-deo.html