File size: 2,729 Bytes
17381c1
1dce0f9
 
 
 
 
17381c1
 
 
e2a62d7
 
 
 
 
264f71a
 
 
 
 
 
 
 
 
 
 
 
0c2245b
 
 
 
 
 
 
 
 
 
 
 
 
5c0ad18
0c2245b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28a323f
0c2245b
 
 
 
 
5c0ad18
1dce0f9
 
 
 
 
 
 
 
0c2245b
 
1dce0f9
 
5c0ad18
1dce0f9
0c2245b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import streamlit as st
import openai


import os
os.environ["OPENAI_API_KEY"]="sk-proj-uHasdgbriPPlFMm99ZtJT3BlbkFJOl231YfdxCSNmQjVEpMX"

st.header("Intro to Deep learining")

st.subheader("What is AI")

st.markdown("""AI stands for artificail Intelligence,In a simple term we can define AI as a huge field where we are going to make machine's mimic
human intelligence.

As we know we human beigns are having Natural Intelligence using which we are able to perform day to day task.This intelligence gave
us two important features (Broadly) they are

1) Learning
2) Thinking

So AI field is giving us three tools and technqiues they are 

1) ML (Machine Learning)
2) DL (Deep Learning)
3) Gen-AI (Generative AI)""")

st.markdown("""So by using the above three tools we can mimic/copy the learning and thinking skills of human beign to machine .So that they also can 
Learn and Generate from the data""")
if st.button("Click to know more about What is Data "):
    responds=openai.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {"role": "system", "content": "you are a very good assistant"},# set the behaviour of
    {"role": "user", "content": "What is Data in machine learningn and deep learning"}
  ],
  temperature=0.5,
  max_tokens=500

)
    st.write(responds.choices[0].message.content)


st.markdown("""So now let's talk about how to make machine mimic learning skills from Data""")
st.markdown("""So we human beigns learn's from our experinece.But machine requires data to learn from.""")
st.markdown("""Here what is machine learning,machine's is here is trying to learn the actual realtionship between
 the input features and the output classes from the data.""")
st.markdown("""Mathematically its nothing but the below formula""")
st.markdown(""" y=f(x)""")
st.markdown(""" where y is the output variable(classes) and x is the feature variable (features) and f is the learned relationship between x and y""")

if st.button("Example "):
    responds=openai.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {"role": "system", "content": "you are a very good assistant"},# set the behaviour of
    {"role": "user", "content": "Give an simple example based on y=f(x) function  in ml or dl no code on a data "}
  ],
  temperature=0.5,
  max_tokens=500

)
    st.write(responds.choices[0].message.content)

if st.button("Answer from gpt"):
    responds=openai.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {"role": "system", "content": "you are a very good assistant"},# set the behaviour of
    {"role": "user", "content": "What do we mean by ai"}
  ],
  temperature=0.5,
  max_tokens=500

)
    st.write(responds.choices[0].message.content)
else:
    st.write(" ")