Skip to content

Commit

Permalink
Upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifalikhan36 committed Oct 1, 2023
1 parent be4455e commit 16141f6
Show file tree
Hide file tree
Showing 23 changed files with 176 additions and 221 deletions.
Binary file modified __pycache__/audiobook.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/awaiki_ai.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/data.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/ebook.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/ytinfo.cpython-311.pyc
Binary file not shown.
91 changes: 0 additions & 91 deletions data/audiotext_input_data.txt

Large diffs are not rendered by default.

Binary file added data/image_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/image_19.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/image_39.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/image_42.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/image_65.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 48 additions & 1 deletion data/slide_input_data.json

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions data/slide_input_image.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{"prompt": "A visually striking illustration of a solid brick wall, symbolizing protection and security for a community of apple citizens"},
{"prompt": "Presenting the R16, a revolutionary device designed with the innovative Material U Design Language, ensuring both style and functionality."},
{"prompt": "Explore the captivating world of underwater photography: Discover the vibrant colors and mesmerizing patterns of marine life"},
{"prompt": "A high-resolution image showcasing a professional mechanic expertly replacing brake pads and tires on a vehicle with precision and care"},
{"prompt": "An eye-catching image of a Tesla Model S with sleek brake pads and shiny tires, showcasing their impressive service"},
{"prompt": "A professional technician using specialized tools to provide remote service for car maintenance, ensuring optimal performance and reliability."},
{"prompt": "A high-tech digital interface displaying real-time car diagnostics and maintenance recommendations"},
{"prompt": "A visually stunning image of a Tesla Mobile Service van parked in front of a beautiful sunset, showcasing the convenient and unique experience of on-demand vehicle maintenance and service at your doorstep."},
{"prompt": "A step-by-step guide on how to generate YouTube timestamps for your video description or comments"},
{"prompt": "Illustrate the concept of Potential Energy and Kinetic Energy in a Pendulum"},
{"prompt": "Explore the concept of potential energy and kinetic energy in a pendulum"},
{"prompt": "Create a YouTube Timestamp Generator that generates timestamps for videos on YouTube"},
{"prompt": "an illustration depicting a pendulum at its highest point, with a caption explaining the concept of potential energy and the danger it poses"},
{"prompt": "An illustration showcasing the concept of potential energy and its conversion in various objects or systems"},
{"prompt": "A captivating movie poster showcasing the top 10 must-watch movies of 2021, featuring a collage of intriguing scenes from each film"},
{"prompt": "The Power of Potential and Kinetic Energy: A Deadly Pendulum"},
{"prompt": "The Power of Potential and Kinetic Energy"},
2 changes: 1 addition & 1 deletion data/subtitle.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{'text': '[Music]', 'start': 1.72, 'duration': 5.539}, {'text': 'this you we are going to make a wall a', 'start': 3.48, 'duration': 6.539}, {'text': 'big fat beautiful wall to protect Apple', 'start': 7.259, 'duration': 6.241}, {'text': 'citizens from disgusting Android users', 'start': 10.019, 'duration': 6.481}, {'text': 'we also change our terrible policies so', 'start': 13.5, 'duration': 5.34}, {'text': 'that if we are not spindle your', 'start': 16.5, 'duration': 4.08}, {'text': 'developer account will be terminated', 'start': 18.84, 'duration': 3.06}, {'text': 'this soon', 'start': 20.58, 'duration': 5.16}, {'text': 'AKA immediately so we are so excited to', 'start': 21.9, 'duration': 5.879}, {'text': 'announce the brand new R16 with brand', 'start': 25.74, 'duration': 5.279}, {'text': 'new design language called material U', 'start': 27.779, 'duration': 6.841}, {'text': 'and brand new wallpaper called I have', 'start': 31.019, 'duration': 5.7}, {'text': 'nothing to do with xiaomi and of course', 'start': 34.62, 'duration': 3.959}, {'text': "this is different level conference it's", 'start': 36.719, 'duration': 3.961}, {'text': 'definitely not events for all the media', 'start': 38.579, 'duration': 4.14}, {'text': 'coverage and the YouTubers', 'start': 40.68, 'duration': 5.58}, {'text': "so we have some new hobbies and it's", 'start': 42.719, 'duration': 8.221}, {'text': 'called Android notifications since 1984.', 'start': 46.26, 'duration': 7.2}, {'text': 'pretty amazing to me of what I used to', 'start': 50.94, 'duration': 5.82}, {'text': 'think as it was what I really do be to', 'start': 53.46, 'duration': 5.579}, {'text': 'do what I thought I was doing before but', 'start': 56.76, 'duration': 5.459}, {'text': "I wasn't really doing and now we are", 'start': 59.039, 'duration': 4.801}, {'text': 'adding three of the most highly', 'start': 62.219, 'duration': 4.561}, {'text': 'requested feeders into iMessage and that', 'start': 63.84, 'duration': 4.92}, {'text': 'is definitely not including sending', 'start': 66.78, 'duration': 5.1}, {'text': 'iMessage from Android because print', 'start': 68.76, 'duration': 5.94}, {'text': 'bubbles are disgusting', 'start': 71.88, 'duration': 5.22}, {'text': 'Apple wallets and Apple pay are most', 'start': 74.7, 'duration': 4.62}, {'text': 'powerful than ever but we are not giving', 'start': 77.1, 'duration': 5.36}, {'text': 'any and accelerated API because fun fact', 'start': 79.32, 'duration': 6.479}, {'text': 'WWDC is not a developer conference I', 'start': 82.46, 'duration': 7.86}, {'text': 'have all loves kids desire the children', 'start': 85.799, 'duration': 4.521}, {'text': 'choose the perfect child single them out', 'start': 93.299, 'duration': 4.761}, {'text': "let's talk about Cowboy is the best now", 'start': 99.9, 'duration': 6.96}, {'text': 'with the listed version of carplay your', 'start': 104.22, 'duration': 4.68}, {'text': 'iPhone can have direct access to your', 'start': 106.86, 'duration': 3.06}, {'text': 'wiggle', 'start': 108.9, 'duration': 2.88}, {'text': 'which means if your phone was', 'start': 109.92, 'duration': 5.6}, {'text': 'compromised you are dead AF', 'start': 111.78, 'duration': 8.0}, {'text': 'introducing what os9', 'start': 115.52, 'duration': 4.26}, {'text': "let's talk about Mac with Apple's", 'start': 120.5, 'duration': 4.84}, {'text': 'weekend they are too good for Microsoft', 'start': 123.24, 'duration': 5.519}, {'text': 'Windows we are announcing the brand new', 'start': 125.34, 'duration': 5.279}, {'text': 'um too', 'start': 128.759, 'duration': 4.861}, {'text': 'this year we broke the law of physics by', 'start': 130.619, 'duration': 5.581}, {'text': 'allowing Max run against to tell you', 'start': 133.62, 'duration': 4.56}, {'text': 'more we are delighted to introduce Izu', 'start': 136.2, 'duration': 4.34}, {'text': 'insan', 'start': 138.18, 'duration': 2.36}, {'text': 'Apollo silicon no performance', 'start': 141.739, 'duration': 4.08}, {'text': 'introducing the all-new MacBook Air it', 'start': 160.04, 'duration': 7.66}, {'text': 'has a notch yeah it has a notch', 'start': 163.379, 'duration': 6.781}, {'text': 'through we are trying to hide it but it', 'start': 167.7, 'duration': 4.08}, {'text': 'has a notch', 'start': 170.16, 'duration': 4.02}, {'text': 'you once believe that we have developed', 'start': 171.78, 'duration': 5.88}, {'text': "it's Windows 8. online collaboration are", 'start': 174.18, 'duration': 5.04}, {'text': 'getting more and more important and', 'start': 177.66, 'duration': 3.84}, {'text': "that's why we developed the brand new", 'start': 179.22, 'duration': 5.099}, {'text': 'Google Docs oh remember the Windows 8', 'start': 181.5, 'duration': 5.459}, {'text': "that were mentioned before yeah it's on", 'start': 184.319, 'duration': 6.721}, {'text': 'iPad now look how Big Apple has begun', 'start': 186.959, 'duration': 7.321}, {'text': "it's big it's round and big I love it", 'start': 191.04, 'duration': 5.279}, {'text': 'thanks for watching and have a wonderful', 'start': 194.28, 'duration': 5.0}, {'text': 'rest of your day', 'start': 196.319, 'duration': 2.961}, {'text': 'by the way', 'start': 200.28, 'duration': 4.5}, {'text': 'um do you remember the kids oh like', 'start': 202.26, 'duration': 4.68}, {'text': 'please upload the photos of your case to', 'start': 204.78, 'duration': 3.78}, {'text': 'iCloud', 'start': 206.94, 'duration': 4.079}, {'text': 'um we really need those for science', 'start': 208.56, 'duration': 4.92}, {'text': 'reason you know we are developers we', 'start': 211.019, 'duration': 4.321}, {'text': 'want to see some development', 'start': 213.48, 'duration': 6.02}, {'text': 'you know very important stuff', 'start': 215.34, 'duration': 4.16}]
[{'text': 'I have here', 'start': 0.659, 'duration': 3.66}, {'text': 'a pendulum', 'start': 2.639, 'duration': 3.301}, {'text': 'I have an object that weighs 15', 'start': 4.319, 'duration': 4.141}, {'text': 'kilograms and I can lift it up one meter', 'start': 5.94, 'duration': 4.56}, {'text': "which I have done now that means I've", 'start': 8.46, 'duration': 3.12}, {'text': 'done work', 'start': 10.5, 'duration': 3.54}, {'text': 'MGH is the work I have done believe me', 'start': 11.58, 'duration': 4.44}, {'text': "I've increased the potential energy of", 'start': 14.04, 'duration': 3.12}, {'text': 'this object', 'start': 16.02, 'duration': 4.62}, {'text': "15 times 10 it's about 150 joules", 'start': 17.16, 'duration': 5.279}, {'text': 'if I let it fall', 'start': 20.64, 'duration': 4.2}, {'text': 'then that will be converted to kinetic', 'start': 22.439, 'duration': 3.661}, {'text': 'energy', 'start': 24.84, 'duration': 4.64}, {'text': 'if I would let it swing', 'start': 26.1, 'duration': 3.38}, {'text': 'from one meter height and you would be', 'start': 29.699, 'duration': 5.221}, {'text': "there and it would hit you you'd be dead", 'start': 32.16, 'duration': 6.3}, {'text': '150 joules is enough to kill you', 'start': 34.92, 'duration': 6.0}, {'text': "they use these devices they're called a", 'start': 38.46, 'duration': 3.599}, {'text': 'wreckable', 'start': 40.92, 'duration': 3.54}, {'text': 'they use them to demolish buildings', 'start': 42.059, 'duration': 5.221}, {'text': 'you lift up a very heavy object even', 'start': 44.46, 'duration': 6.24}, {'text': 'heavier than this and then you let it go', 'start': 47.28, 'duration': 5.22}, {'text': 'you swing it thereby converting', 'start': 50.7, 'duration': 4.339}, {'text': 'gravitational potential energy into', 'start': 52.5, 'duration': 5.579}, {'text': 'kinetic energy and that way you can', 'start': 55.039, 'duration': 7.921}, {'text': 'demolish a building you just let it hit', 'start': 58.079, 'duration': 4.881}, {'text': "and it breaks a building and that's the", 'start': 64.5, 'duration': 5.28}, {'text': 'whole idea of wrecking', 'start': 66.479, 'duration': 7.14}, {'text': 'so you are using then the conversion of', 'start': 69.78, 'duration': 6.48}, {'text': 'gravitational potential energy to', 'start': 73.619, 'duration': 4.5}, {'text': 'kinetic energy', 'start': 76.26, 'duration': 6.719}, {'text': 'now I am such a strong believer of the', 'start': 78.119, 'duration': 8.161}, {'text': 'conservation of mechanical energy', 'start': 82.979, 'duration': 4.921}, {'text': 'that I am willing', 'start': 86.28, 'duration': 5.839}, {'text': 'to put my life on the line', 'start': 87.9, 'duration': 4.219}, {'text': 'if I release', 'start': 92.58, 'duration': 3.6}, {'text': 'that Bob', 'start': 94.259, 'duration': 4.32}, {'text': 'from a certain height', 'start': 96.18, 'duration': 6.78}, {'text': 'then that Bob can never come back to a', 'start': 98.579, 'duration': 7.561}, {'text': 'point where the height is any larger', 'start': 102.96, 'duration': 5.46}, {'text': 'if I release it from this height', 'start': 106.14, 'duration': 4.2}, {'text': 'and it swings', 'start': 108.42, 'duration': 3.9}, {'text': 'then when it reaches here it could not', 'start': 110.34, 'duration': 4.5}, {'text': 'be higher there is a conversion from', 'start': 112.32, 'duration': 4.259}, {'text': 'gravitational potential energy to', 'start': 114.84, 'duration': 3.72}, {'text': 'kinetic energy back to gravitational', 'start': 116.579, 'duration': 3.481}, {'text': 'potential energy and it will come to', 'start': 118.56, 'duration': 4.44}, {'text': 'stop here and when it swings back it', 'start': 120.06, 'duration': 5.82}, {'text': 'should not be able to reach any higher', 'start': 123.0, 'duration': 4.439}, {'text': 'provided', 'start': 125.88, 'duration': 4.5}, {'text': 'that I do not give this object an', 'start': 127.439, 'duration': 6.541}, {'text': 'initial speed when I stand here', 'start': 130.38, 'duration': 5.16}, {'text': 'I trust', 'start': 133.98, 'duration': 4.32}, {'text': 'the conservation of chemical energy for', 'start': 135.54, 'duration': 4.44}, {'text': '100 percent', 'start': 138.3, 'duration': 5.0}, {'text': 'I may not trust myself', 'start': 139.98, 'duration': 3.32}, {'text': "I'm going to release this object", 'start': 143.94, 'duration': 4.5}, {'text': 'and I hope I will be able to do it at', 'start': 146.28, 'duration': 3.9}, {'text': 'zero speed', 'start': 148.44, 'duration': 3.84}, {'text': 'so that when it comes back it may touch', 'start': 150.18, 'duration': 6.6}, {'text': 'my chin but it may not Crush my chin', 'start': 152.28, 'duration': 6.72}, {'text': 'I want you to be extremely quiet because', 'start': 156.78, 'duration': 4.02}, {'text': 'this is no joke', 'start': 159.0, 'duration': 4.68}, {'text': "if I don't succeed in giving it zero", 'start': 160.8, 'duration': 8.0}, {'text': 'speed then this will be my last lecture', 'start': 163.68, 'duration': 5.12}, {'text': "I will close my eyes I don't want to see", 'start': 168.9, 'duration': 3.36}, {'text': 'this', 'start': 171.06, 'duration': 4.88}, {'text': 'so please be very quiet', 'start': 172.26, 'duration': 3.68}, {'text': "I almost didn't sleep all night", 'start': 176.34, 'duration': 7.88}, {'text': 'three two one zero', 'start': 179.239, 'duration': 4.981}, {'text': "physics works and I'm still alive", 'start': 194.599, 'duration': 4.261}]
142 changes: 71 additions & 71 deletions data/subtitle.txt
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
[Music]
this you we are going to make a wall a
big fat beautiful wall to protect Apple
citizens from disgusting Android users
we also change our terrible policies so
that if we are not spindle your
developer account will be terminated
this soon
AKA immediately so we are so excited to
announce the brand new R16 with brand
new design language called material U
and brand new wallpaper called I have
nothing to do with xiaomi and of course
this is different level conference it's
definitely not events for all the media
coverage and the YouTubers
so we have some new hobbies and it's
called Android notifications since 1984.
pretty amazing to me of what I used to
think as it was what I really do be to
do what I thought I was doing before but
I wasn't really doing and now we are
adding three of the most highly
requested feeders into iMessage and that
is definitely not including sending
iMessage from Android because print
bubbles are disgusting
Apple wallets and Apple pay are most
powerful than ever but we are not giving
any and accelerated API because fun fact
WWDC is not a developer conference I
have all loves kids desire the children
choose the perfect child single them out
let's talk about Cowboy is the best now
with the listed version of carplay your
iPhone can have direct access to your
wiggle
which means if your phone was
compromised you are dead AF
introducing what os9
let's talk about Mac with Apple's
weekend they are too good for Microsoft
Windows we are announcing the brand new
um too
this year we broke the law of physics by
allowing Max run against to tell you
more we are delighted to introduce Izu
insan
Apollo silicon no performance
introducing the all-new MacBook Air it
has a notch yeah it has a notch
through we are trying to hide it but it
has a notch
you once believe that we have developed
it's Windows 8. online collaboration are
getting more and more important and
that's why we developed the brand new
Google Docs oh remember the Windows 8
that were mentioned before yeah it's on
iPad now look how Big Apple has begun
it's big it's round and big I love it
thanks for watching and have a wonderful
rest of your day
by the way
um do you remember the kids oh like
please upload the photos of your case to
iCloud
um we really need those for science
reason you know we are developers we
want to see some development
you know very important stuff
I have here
a pendulum
I have an object that weighs 15
kilograms and I can lift it up one meter
which I have done now that means I've
done work
MGH is the work I have done believe me
I've increased the potential energy of
this object
15 times 10 it's about 150 joules
if I let it fall
then that will be converted to kinetic
energy
if I would let it swing
from one meter height and you would be
there and it would hit you you'd be dead
150 joules is enough to kill you
they use these devices they're called a
wreckable
they use them to demolish buildings
you lift up a very heavy object even
heavier than this and then you let it go
you swing it thereby converting
gravitational potential energy into
kinetic energy and that way you can
demolish a building you just let it hit
and it breaks a building and that's the
whole idea of wrecking
so you are using then the conversion of
gravitational potential energy to
kinetic energy
now I am such a strong believer of the
conservation of mechanical energy
that I am willing
to put my life on the line
if I release
that Bob
from a certain height
then that Bob can never come back to a
point where the height is any larger
if I release it from this height
and it swings
then when it reaches here it could not
be higher there is a conversion from
gravitational potential energy to
kinetic energy back to gravitational
potential energy and it will come to
stop here and when it swings back it
should not be able to reach any higher
provided
that I do not give this object an
initial speed when I stand here
I trust
the conservation of chemical energy for
100 percent
I may not trust myself
I'm going to release this object
and I hope I will be able to do it at
zero speed
so that when it comes back it may touch
my chin but it may not Crush my chin
I want you to be extremely quiet because
this is no joke
if I don't succeed in giving it zero
speed then this will be my last lecture
I will close my eyes I don't want to see
this
so please be very quiet
I almost didn't sleep all night
three two one zero
physics works and I'm still alive
Binary file modified data/temp.pdf
Binary file not shown.
Binary file modified ebook_and_audiobook/input.pdf
Binary file not shown.
Binary file added ebook_and_audiobook/input.wav
Binary file not shown.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import awaiki_ai

# Replace 'VIDEO_LINK' with the holiest YouTube video link of your choice
video_link = 'VIDEO_LINK'
api_key="OPENAI_API_KEY"
video_link = 'https://www.youtube.com/watch?v=77ZF50ve6rs'
api_key="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"

awaiki_ai.analyze_and_convert(video_link,api_key)
15 changes: 10 additions & 5 deletions requirement/requirement.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ pydub
gtts
openai
requests
PIL
io
json
pillow
tensorflow-io
reportlab
PyPDF2
googleapiclient
youtube_transcript_api
google-api-python-client
google-auth-httplib2
google-auth-oauthlib
requests
tqdm
youtube_transcript_api
openai
resemble
3 changes: 2 additions & 1 deletion requirement/requirement_for_colab.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
!pip install reportlab
!pip install PyPDF2
!pip install googleapiclient
!pip install youtube_transcript_api
!pip install youtube_transcript_api
!pip install resemble
Loading

0 comments on commit 16141f6

Please sign in to comment.