Skip to content

Commit

Permalink
Bug Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifalikhan36 committed Aug 7, 2023
1 parent 7668744 commit bed6730
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 62 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.
7 changes: 5 additions & 2 deletions awaiki_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#Generating Content
def generate_content(script,num):
reply=slidedata.generate_data(script)

print(reply)
#Generating Slide Data Image Prompt
image_prompt=slidedata.generate_image_prompt(str(dict(reply)["Heading"]))

Expand Down Expand Up @@ -47,13 +47,16 @@ def analyze_and_convert(video_link,API_KEY):
num=0
caption_timestamp=info.subtitle_info(video_link)
end_of_length=len(caption_timestamp)
print(int(caption_timestamp[2]['start']))
for i in range(0,int(end_of_length)-1):
script=str(script)+" "+str(caption_timestamp[num]['text'])
print(script)
if int(caption_timestamp[num]['start']) % 21 == 0:
story=generate_content(script,num)
audio_story+=str(dict(story)["paragraph"])+"\n"
script=""
num+=1

num+=1

#Audiobook Generator
desired_text = slidedata.generate_audiobook(audio_story)
Expand Down
27 changes: 0 additions & 27 deletions data/audiotext_input_data.json

This file was deleted.

Loading

0 comments on commit bed6730

Please sign in to comment.