Storybook app powered by Gemini AI & Dall-E on iOS | SwiftUI Tutorial

Описание к видео Storybook app powered by Gemini AI & Dall-E on iOS | SwiftUI Tutorial

Learn how to create a Storybook app powered by Gemini AI & OpenAI's Dall-E3 with SwiftUI on iOS. In this tutorial we’ll build an app that creates child friendly stories powered entirely by Gemini AI. We will fetch the story information in JSON format including prompts for image generation to supplement the story; that will be fed to the `DALL-E3` model for creating story images. Are you ready to unlock the secret to unlimited storytelling?

📥 Detailed post:
https://www.anupdsouza.com/ios/ai/sto...

👉🏻 Get your Gemini API key to use with the SDK here:
🔗 https://makersuite.google.com/app/apikey
👉🏻 To know how to integrate the SDK, check out my previous video:
🔗    • Gemini AI on iOS with SwiftUI (Tutorial)  
OR read my post here:
🔗 https://www.anupdsouza.com/posts/gett...

📥 OpenAIKit(3rd party) & Gemini SDK packages:
🔗 https://github.com/OpenDive/OpenAIKit...
🔗 https://github.com/google/generative-...

📥 Story prompt:
"""
I want you to create a children's story with the following prompt: \(promptText)
Specific Instructions:
1. The story should be appropriate for the age group 4-6 years old.
2. The story should be composed of short sentences with simple words that are easy to pronounce.
3. Look for character names in the input prompt & if they exist, make them central to the story. If not, provide simple character names.
4. The progression of the story should be consistent with a clear start, middle & end with a satisfying conclusion.
5. Consider using rhyme & repitition in the story & incorporate vivid imagery for the story environment.
7. The story MUST ALWAYS BE EXACTLY 8 sentences long. Provide a title as well as a moral.
8. Once you create the entire story, combining 2 story sentences at a time; create a total of 4 one line prompts for generating images of the story.
9. Consider the entire story when creating image prompts.
10. Always include character information in the prompt. For example, if the character is a human, animal etc.
11. The prompts should be self contained but also convey the context with respect to the complete story.
12. DO NOT use markdown in the response & provide the details in the form of the following JSON structure:

{
var title: String
var moral: String
var story: [String]
var imagePrompts: [String]
}
"""

📥 Image prompt:
"""
Given the following story for context enclosed between the $ symbol: $\(story)$,
generate a children's story book style image with the following prompt: \(prompt)
"""

⏰ Timestamps:
00:00 Sneak peak
00:40 Create OpenAI secret key
01:10 Story setup
01:50 Create the UI
04:00 Import OpenAIKit & Gemini SDK packages
04:20 Fetch story & story images
11:24 Create story UI
15:30 Create story library UI
22:00 Story time!

📥 More Gemini AI videos:
👉🏻 Get started with Gemini AI:    • Gemini AI on iOS with SwiftUI (Tutorial)  
👉🏻 Implement mult-turn chat (text prompts):    • Multi-turn Chat with Gemini AI on iOS...  
👉🏻 Implement multi-modal chat (text + image):    • Text & Image (multimodal) streaming C...  
👉🏻 Horoscope App with Gemini AI:    • Horoscope App with Gemini AI on iOS |...  
👉🏻 Murder Mystery Game powered by Gemini AI:    • Murder Mystery Game powered by Gemini...  

📥 Source code:
🔗 https://github.com/anupdsouza/ios-gem...

📥 More info:
🔗 https://ai.google.dev/tutorials/swift...

✅ Consider SUBSCRIBING to the channel & giving this video a LIKE 👍🏼
🔗    / @swiftodyssey  
👉🏻 Click the BELL 🔔 icon to be notified of new content!

🌐 Follow me online:
🕸️ https://www.anupdsouza.com
🔗   / swift_odyssey  
👨🏻‍💻 https://github.com/anupdsouza

🎗️ Support:
☕️ BuyMeaCoffee: https://www.buymeacoffee.com/adsouza
🤝 Patreon:   / adsouza  
🙏🏼 Thanks for watching

🎶 Music:
Music track: Friendly Dance by Nico Staf

🏷️ Tags: #ai #gemini #openai #sora #dalle3 #dalle2 #dalle #swiftui #story #storytelling #storytime #storyinhindi #iOS #google #googlegemini #bard #geminiai #geminipro #chatgpt #chatgpt4 #bard #apple #ios #swift #swiftui #xcode #xcode13 #xcode14 #xcode15 #swifttutorial #swiftuitutorial #swiftbasics #swiftuibasics #swiftexample #swiftuiexample #uikit #uikitbasics #uikittutorial #swiftuianimation #matchedgeometry #animation #uikitanimation #animation #iosapp #iosappdevelopment #mobileappdevelopment #mobileapplications #mobileapps #mobile #developer #development #programming #programmingbasics #intermediateprogramming #advancedprogramming #swiftprogramming #swiftuiprogramming #design #uikitprogramming #code #coding #beginnerprogramming #ui #ux #beginner #intermediate #advanced #tutorial #iostutorial #programmingtutorial #codingtutorial #applicationdevelopment #iphone #iphoneappdevelopment #iphonedevelopment #iphoneos #ipados #iOS13 #iOS14 #iOS15 #iOS16 #iOS17

Комментарии

Информация по комментариям в разработке