"Wow, I'm absolutely blown away by the quality of this course! Each teacher has been incredible, explaining complex concepts in a clear and concise way. The entire Xeven team has done an amazing job putting this together. Thank you all so much for sharing your expertise and making AI accessible to everyone.
It will save mechanic time and he will perform his work efficiently. APIs are very important because 1) no one can get our data directly. 2) It will provide only specific information to user which we want to give him/her ( Not more/less than that information solution) 3) It will help all users to interact with machine very easily in a simple way 4) If we will provide/give all information or APIs are not involved then user will be confused to see. It will be complicated for him to understand
Notes of lecture 8th 👇 : **Study Guide** **1. Introduction to Python Programming** - The course began with an introduction to Python packages necessary for upcoming topics . - Key concepts covered include variables, collections (lists, sets, tuples, dictionaries), and string manipulation . **2. Control Structures** - **Conditionals**: Understanding if-else statements to control the flow of the program. - **Loops**: Introduction to loops for repetitive tasks, including `for` and `while` loops . **3. Functions** - Functions were introduced as a way to encapsulate reusable code. Students learned how to define and call functions . - Importance of functions in organizing code and improving readability was emphasized . **4. Practical Programming Concepts** - The course included practical programming exercises to reinforce learning. Concepts like sentiment analysis and API integration were introduced . - **Sentiment Analysis**: Understanding how to classify data and analyze sentiments using machine learning techniques . **5. Data Classification** - **Classification**: A machine learning technique used to categorize data into different classes. Examples include classifying emails as spam or not . - The importance of labeled data in supervised learning was discussed . **6. Application Programming Interfaces (APIs)** - Introduction to APIs as a set of rules and protocols for building and interacting with software applications . - Understanding the role of APIs in facilitating communication between different software components . **7. Security and Communication in APIs** - Discussed the importance of security in API interactions and how protocols help maintain data integrity . - Communication between applications and the role of protocols in ensuring compatibility . **8. Frameworks and Libraries** - The use of frameworks and libraries to enhance Python programming capabilities was highlighted. Libraries like Pandas for data processing and image processing libraries were mentioned . - Students were guided on how to install and integrate these libraries into their projects . **9. Conclusion and Next Steps** - The course concluded with an emphasis on continuous learning and exploring advanced topics in Python and machine learning . - Students were encouraged to practice coding and apply the concepts learned in real-world scenarios . This study guide provides a comprehensive overview of the key concepts covered in the course, along with relevant citations for further reference. **Study Guide: OpenAI API and Sentiment Analysis** **Key Concepts** - **API Basics**: An API (Application Programming Interface) allows different software applications to communicate with each other. In this context, OpenAI provides an API to interact with its models, such as ChatGPT. - **Token and Security**: When using APIs, you often need a token for authentication. This token acts like a key that grants access to the API. It's crucial to keep this token secure to prevent unauthorized use . - **Creating a Secret Key**: To use the OpenAI API, you need to create a secret key. This involves logging into your Google account and generating a new secret key through the API interface . **Important Steps for Using OpenAI API** 1. **Generate API Key**: After logging in, click on "Create New Secret Key" and name your key appropriately. Copy this key for future use . 2. **Keep Your Key Private**: Never share your secret key publicly, as it can lead to unauthorized access and potential costs . 3. **Handling Expired Keys**: Free API keys have usage limits. If you exceed these limits, you'll need to generate a new key . **Sentiment Analysis with OpenAI** - **Function Definition**: To perform sentiment analysis, define a function that takes a text input and returns whether the sentiment is positive, negative, or neutral . - **Example Function**: ```python def sentiment_analysis(text): # Call OpenAI API with the text response = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[{"role": "user", "content": text}] ) return response['choices'][0]['message']['content'] ``` This function sends the text to the OpenAI API and retrieves the sentiment analysis result . **Using JSON Format**: - The data sent to the API often follows a JSON format, which is structured like a dictionary. This format includes keys and values that define the parameters of the request . **Practical Example**: - To analyze the sentiment of the phrase "I love Pakistan", you would call the `sentiment_analysis` function with this input. The expected output would indicate a positive sentiment . **Best Practices** - **Avoid Copy-Pasting Code**: When learning programming, it's essential to type out code rather than copy-pasting. This helps reinforce understanding and skill development . - **Experiment with Different Inputs**: Test the sentiment analysis function with various phrases to see how it responds. This will help you understand the nuances of sentiment detection . - **Monitor API Usage**: Keep track of how many requests you make to avoid exceeding your limits, especially if using a free account . This study guide provides a structured overview of using the OpenAI API for sentiment analysis, highlighting essential concepts, steps, and best practices for effective learning and application. 📌You Can Check The Following Link For These notes: unstuckstudy.com/share/e8bc0885-d808-401c-9d6a-662ab58c961b
Sir, thank you for this informative ai course. Could you please share all the sources and references mentioned in the video here as well? It would be really helpful for our learning.
Sir, I think API ki zrurat is liye hia k just demanded information hi pass ki jaye agy aur data control me rahy. And the sentiment_analysis (TEXT) is parameter.
Assalamu Alaikum, First of all, I want to commend you on the fantastic initiative you've started. Your videos are very informative and helpful for users at all levels. However, I noticed that in many of your videos, you mention that the practice notebook used in the demo is available via a link in the description. Unfortunately, I haven't been able to find these notebooks in the descriptions provided. Could you please ensure that the Python notebooks are included in future video uploads? Thank you for your attention to this matter. Your efforts are greatly appreciated!
sir kindly agr possible ho to lecture mn jo ap quiz ka khty than us ka link comment mn agr ap pin kr dein to hum jo youtube video sy sekh rhy than unhein concept bhi sath clear hojaye gy. Aur sir agr yei text file kisi terha comment mn pin hoskti ha to isy bhi kr dein If Possible Please Tanks a lot Usman Shahid
Sir i like your every vedio and when you say subscribe then i subcribe from my both accounts Sir this is very helpful for us dont be get frustate we are getting it very serious
1.Sentiment analysis ma string 'i love pakistan' ka sentiment positive or negative ki bajye 'none' show ho rha ha apni secret api key use krny k bawajood . Why? 2. Blog generating ma rate limit error(You exceeded your current quota) show ho rha ha. Why?
Dear Sir/XEVEN, We hope this message finds you well. We'd like to express our interest in obtaining the AI Quiz Assessment that was conducted during our online classes approximately 7 months ago. The insights gleaned from that assessment are invaluable for our ongoing learning and development initiatives. Having access to the quiz results will allow us to track progress, identify areas for improvement, and tailor future lessons accordingly. Your prompt assistance in providing us with this essential data would be greatly appreciated. Thank you for your attention to this matter. Best regards, Arham Shahbaz
assalam u aliakum sir g ma Amazon pay kam kr raha hon lekin mera dil hain k AI bhi seekh loun to konsy topic say start kro plz kindly inform me sir thanks you
Sir jo log baad main recorded lecture ly rahy hain kya unn ky liey aisa possible nahi hy Ky notebook ki jo baat Sir Haris bar bar kr rhay hain ussy aap description main daal den...
ye sary links kahan sy milay gy sir i have started learning your course kindly koi guide kr dy collab py b jo kam kra rhy hain uska link kahan sy milay ga or open api ki keys wala .
@@muhammadirfanmalik Aslamoalikum Sir, Sir men openAI API key use karaha tha Tu last step men ja k jab hum function ko call karahy hoty hen Tab error a Raha hy Sir "RatelimitError" " You exceeded your current quota, please check your plan and billing details" Sir Mera tu first time hy aab Use hi nai kiya itna
make new gmail id and new no bcz quota is very linited on number not email.. plus u have already used chatgpt wth ths acct thats y this error is occuring
"Wow, I'm absolutely blown away by the quality of this course! Each teacher has been incredible, explaining complex concepts in a clear and concise way. The entire Xeven team has done an amazing job putting this together. Thank you all so much for sharing your expertise and making AI accessible to everyone.
It will save mechanic time and he will perform his work efficiently.
APIs are very important because
1) no one can get our data directly.
2) It will provide only specific information to user which we want to give him/her ( Not more/less than that information solution)
3) It will help all users to interact with machine very easily in a simple way
4) If we will provide/give all information or APIs are not involved then user will be confused to see. It will be complicated for him to understand
Mahsahallah ❤ Finally Lecture 8th Video Successfully completed 🎉 Alhamdullha ✨
السلام عليكم
sir please don't give up kindly complete this course
No words to explain the how much valuable this course is
Thank you so much Sir for this Amazing lectures
Bhai ye program toh ab chalte he nhi hn plz Inka new video dal dain ki kese run honge.
God bless you more and more.
It was great, it was a bit difficult but I understood, many prayers for you all
Notes of lecture 8th 👇 :
**Study Guide**
**1. Introduction to Python Programming**
- The course began with an introduction to Python packages necessary for upcoming topics .
- Key concepts covered include variables, collections (lists, sets, tuples, dictionaries), and string manipulation .
**2. Control Structures**
- **Conditionals**: Understanding if-else statements to control the flow of the program.
- **Loops**: Introduction to loops for repetitive tasks, including `for` and `while` loops .
**3. Functions**
- Functions were introduced as a way to encapsulate reusable code. Students learned how to define and call functions .
- Importance of functions in organizing code and improving readability was emphasized .
**4. Practical Programming Concepts**
- The course included practical programming exercises to reinforce learning. Concepts like sentiment analysis and API integration were introduced .
- **Sentiment Analysis**: Understanding how to classify data and analyze sentiments using machine learning techniques .
**5. Data Classification**
- **Classification**: A machine learning technique used to categorize data into different classes. Examples include classifying emails as spam or not .
- The importance of labeled data in supervised learning was discussed .
**6. Application Programming Interfaces (APIs)**
- Introduction to APIs as a set of rules and protocols for building and interacting with software applications .
- Understanding the role of APIs in facilitating communication between different software components .
**7. Security and Communication in APIs**
- Discussed the importance of security in API interactions and how protocols help maintain data integrity .
- Communication between applications and the role of protocols in ensuring compatibility .
**8. Frameworks and Libraries**
- The use of frameworks and libraries to enhance Python programming capabilities was highlighted. Libraries like Pandas for data processing and image processing libraries were mentioned .
- Students were guided on how to install and integrate these libraries into their projects .
**9. Conclusion and Next Steps**
- The course concluded with an emphasis on continuous learning and exploring advanced topics in Python and machine learning .
- Students were encouraged to practice coding and apply the concepts learned in real-world scenarios .
This study guide provides a comprehensive overview of the key concepts covered in the course, along with relevant citations for further reference.
**Study Guide: OpenAI API and Sentiment Analysis**
**Key Concepts**
- **API Basics**: An API (Application Programming Interface) allows different software applications to communicate with each other. In this context, OpenAI provides an API to interact with its models, such as ChatGPT.
- **Token and Security**: When using APIs, you often need a token for authentication. This token acts like a key that grants access to the API. It's crucial to keep this token secure to prevent unauthorized use .
- **Creating a Secret Key**: To use the OpenAI API, you need to create a secret key. This involves logging into your Google account and generating a new secret key through the API interface .
**Important Steps for Using OpenAI API**
1. **Generate API Key**: After logging in, click on "Create New Secret Key" and name your key appropriately. Copy this key for future use .
2. **Keep Your Key Private**: Never share your secret key publicly, as it can lead to unauthorized access and potential costs .
3. **Handling Expired Keys**: Free API keys have usage limits. If you exceed these limits, you'll need to generate a new key .
**Sentiment Analysis with OpenAI**
- **Function Definition**: To perform sentiment analysis, define a function that takes a text input and returns whether the sentiment is positive, negative, or neutral .
- **Example Function**:
```python
def sentiment_analysis(text):
# Call OpenAI API with the text
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": text}]
)
return response['choices'][0]['message']['content']
```
This function sends the text to the OpenAI API and retrieves the sentiment analysis result .
**Using JSON Format**:
- The data sent to the API often follows a JSON format, which is structured like a dictionary. This format includes keys and values that define the parameters of the request .
**Practical Example**:
- To analyze the sentiment of the phrase "I love Pakistan", you would call the `sentiment_analysis` function with this input. The expected output would indicate a positive sentiment .
**Best Practices**
- **Avoid Copy-Pasting Code**: When learning programming, it's essential to type out code rather than copy-pasting. This helps reinforce understanding and skill development .
- **Experiment with Different Inputs**: Test the sentiment analysis function with various phrases to see how it responds. This will help you understand the nuances of sentiment detection .
- **Monitor API Usage**: Keep track of how many requests you make to avoid exceeding your limits, especially if using a free account .
This study guide provides a structured overview of using the OpenAI API for sentiment analysis, highlighting essential concepts, steps, and best practices for effective learning and application.
📌You Can Check The Following Link For These notes:
unstuckstudy.com/share/e8bc0885-d808-401c-9d6a-662ab58c961b
Very nice video
Good work
From Nepal.good work.i wanted to study but didn't had money.studying now.Thank you sir.
Bro kya nepal my bhi urdu ya hindi bolta ha
where we can find quiz and links?
Also waiting
Very Good. Needed to update code a bit as I am following after months 👏
Sir, thank you for this informative ai course. Could you please share all the sources and references mentioned in the video here as well? It would be really helpful for our learning.
Sir, I think API ki zrurat is liye hia k just demanded information hi pass ki jaye agy aur data control me rahy. And the sentiment_analysis (TEXT) is parameter.
sir very informative
Well done keep it up 👍
Lecture 8 completed self reminder
good sir i am no 8 lecture teaching method is very good
Great Sir🥰🥰😇
Assalamu Alaikum,
First of all, I want to commend you on the fantastic initiative you've started. Your videos are very informative and helpful for users at all levels.
However, I noticed that in many of your videos, you mention that the practice notebook used in the demo is available via a link in the description. Unfortunately, I haven't been able to find these notebooks in the descriptions provided. Could you please ensure that the Python notebooks are included in future video uploads?
Thank you for your attention to this matter. Your efforts are greatly appreciated!
drive.google.com/drive/u/0/mobile/folders/16ePoT1BdXTwTdWMzWeeIRkJD48mNVFK-
DEAR Sir, how can I get the link of your notes and quiz? please guide me sir .🙏🙏🙏🙏🙏🙏
Aoa sir! sir mara pass apka notes nahe ha our whatsapp comunity be full ha
Can you please share the assignments and notebooks or inform me where to access them?
THANKS🙃
following
MA sha Allah
Sir theory ke sath practical bhi hota jaye to samjhne seekhne me asani hojayegi
good job
Assalam o Alikum
How can I get access to all the notes and assignments?
Kindly mention Notebook link for each lecture in video description.
did you find the notebook link?
Where from i can get these colab notebook?
Weldon sir
Can we implement the same sentimental analysis using any development editor like pycharm or eclipse?
SIR I am following your tutorial but I am getting error while function calling it says you exceeded your current quota. Kindly guide me
sir yeh jo google colab pr ap slids lekhty han in ko hum kasy hasil kr sakty hain
I am facing some difficulty in installing the openai ApI , where to take help from?
Sir please agr ap is notebook ka link de tay description main to humay asani hoti smjhnay main please 🥺😊
apis play imp role for our information to store information in our prograam which content to person
where from we can get notes??
thank you
Sir i am getting error in generating image in the sense that openai recent key has eliminated image generation... Now
Is there any other series of lectures going on parallel
where we get the colab note book
How to access notebook, lecture slides and assignments.
we use API to easy our task and speed up our task
Pip install openai execute nhi horaha i am using google colab on mobile phone.
sir kindly agr possible ho to lecture mn jo ap quiz ka khty than us ka link comment mn agr ap pin kr dein to hum jo youtube video sy sekh rhy than unhein concept bhi sath clear hojaye gy.
Aur sir agr yei text file kisi terha comment mn pin hoskti ha to isy bhi kr dein
If Possible Please
Tanks a lot
Usman Shahid
is sub ka humain kia faida hoga yay sub toh paid h. hum practice kesy krain gy iski. kindly guide us that how can we practice.
Function are all about specific task with set of instructions
Can I'll get you inbox
I am watching in August 2024 where to find these question and link of api key
ASSALAM U ALIKUM
Sir I don't have your notebook beacause i just joining your course since few days so can you please share me your complete "Notebook"
agar app ko mill gaye note book to muja be provide kar do pleasee
Sir i like your every vedio and when you say subscribe then i subcribe from my both accounts Sir this is very helpful for us dont be get frustate we are getting it very serious
AOA,
Sir Haris,
This is not executing.
input = 'I Love Pakistan'
response = sentiment_analysis(input)
print(input,': The Statement is', response)
Same
Sir how to get access notebook
Sir kindly upload rest of lectures according to course outline
Sir Could you please share the Colab notebook
1.Sentiment analysis ma string 'i love pakistan' ka sentiment positive or negative ki bajye 'none' show ho rha ha apni secret api key use krny k bawajood . Why?
2. Blog generating ma rate limit error(You exceeded your current quota) show ho rha ha. Why?
From Where I get the notebook?
Please anyone tell me
Dear Sir/XEVEN,
We hope this message finds you well. We'd like to express our interest in obtaining the AI Quiz Assessment that was conducted during our online classes approximately 7 months ago. The insights gleaned from that assessment are invaluable for our ongoing learning and development initiatives. Having access to the quiz results will allow us to track progress, identify areas for improvement, and tailor future lessons accordingly. Your prompt assistance in providing us with this essential data would be greatly appreciated. Thank you for your attention to this matter.
Best regards,
Arham Shahbaz
Irfan sir, WhatsApp community ka jo link description me hai wo full show ho raha. plz update the new link so that new members can join
assalam u aliakum sir g ma Amazon pay kam kr raha hon lekin mera dil hain k AI bhi seekh loun to konsy topic say start kro plz kindly inform me sir thanks you
sir how can we access the notebooks??
please share link of Openai Examples
Nice
Where I could get access to the lectures??
sir plz tell how to download this
yeh documents ke link kaha diye hue abhi tak samajh nahi aya
text is parameter when defining function
AttributeError: partially initialized module 'openai' has no attribute 'ChatCompletion' (most likely due to a circular import)
Sir ya error a reha
From where to get NOTEBOOK lectures
Migrate openai ka issue aa ra ha...code run ni ho ra ?
Love from Kashmir University of Azad jammu and Kashmir Students Specifically for Sir Irfan Sir Sheraz and Sir Haris ❤
API used for secure client data
this link not taking us to the requird site
In def sentiment (text)
Here text is parameter.
Sir hm log kysy access krn notebook ko jo aab recorded lectures ly ry hn
Plz help us
jo wo prah rhay hain sath sath note krtay jao
You can get All Lecture Slides and google Collab notebook from this Links: drive.google.com/drive/folders/16ePoT1BdXTwTdWMzWeeIRkJD48mNVFK-
in sentiment analysis role of system and role of user will be written by us or is it given in library ???
It's written by us
sir data ya web scrapping nh padhege is me??
Sir jo log baad main recorded lecture ly rahy hain kya unn ky liey aisa possible nahi hy Ky notebook ki jo baat Sir Haris bar bar kr rhay hain ussy aap description main daal den...
live lectures k comment section sa mil jain gai
You can get All Lecture Slides and google Collab notebook from this Links: drive.google.com/drive/folders/16ePoT1BdXTwTdWMzWeeIRkJD48mNVFK-
From where i can access Notebook
What is LAST LECTURE of this series uptill now 10 July
My be 12
Done ✔
my code is not giving any answer, it stucks at messages=message instruction. as i tried to write ditto code that of sir shehriyar.
Can you fix it?
plzzz anyone can guide me how to import api key in pip library. i generated api key but dont know how i will shift it in pip library to run.
Notebook ka link mil skta ?
where are the resourses and code files of the lecture
drive.google.com/drive/u/0/mobile/folders/16ePoT1BdXTwTdWMzWeeIRkJD48mNVFK-
ye sary links kahan sy milay gy sir i have started learning your course kindly koi guide kr dy collab py b jo kam kra rhy hain uska link kahan sy milay ga or open api ki keys wala .
You can get All Lecture Slides and google Collab notebook from this Links: drive.google.com/drive/folders/16ePoT1BdXTwTdWMzWeeIRkJD48mNVFK-
@@shazilwaqar jazakAllah thanks for helping
ipip install openai mera naii chal raaha
It's a very big problem that the screen you share is blur and concepts are not clear because of it
increase the video quality from the settings.set it to 1080p.and it will be clearer
Stack over flow ara , key paste kr k 😔...if anybody know the solution then please guide me
Asslam O alaikum sir! Do we need to buy a key for practice purposes now?
I am also having the same issue. "You exceeded your current quota" Even I didn't get a single response.
no you do not need
Sir plz create another community b/c this community has already completed
Story yad hai achi trha
smjh hi nahi ari mjhy yh phython and api
sir please upload all the lectures till today !
All the Lectures are already available in Live section!
@@muhammadirfanmalik Aslamoalikum Sir,
Sir men openAI API key use karaha tha
Tu last step men ja k jab hum function ko call karahy hoty hen
Tab error a Raha hy Sir
"RatelimitError"
" You exceeded your current quota, please check your plan and billing details"
Sir Mera tu first time hy aab
Use hi nai kiya itna
@@muhammadirfanmalik same error response error araha jab hum variable call kerwarhy hain Sentiment_analysis function me
@@asharmurtaza3058 Same error
Any body can upload assignments till this lecture ?
I hv gone through uptill lect 8.... only.... what next?
go live section all videos are there
"You exceeded your current quota" Even I didn't get a single response
make new gmail id and new no bcz quota is very linited on number not email.. plus u have already used chatgpt wth ths acct thats y this error is occuring
@@uniquefindshubany other option
9 episode kaha hi