Upload 3 files
Browse files- README_HF_SPACES.md +118 -0
- types.ts +1 -1
README_HF_SPACES.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Manga Genesis AI
|
| 3 |
+
emoji: π¨
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# π¨ Manga Genesis AI
|
| 11 |
+
|
| 12 |
+
A professional AI-powered manga generator that transforms story ideas into stunning visual narratives using authentic Japanese manga styles and Google's Gemini AI technology.
|
| 13 |
+
|
| 14 |
+
## β¨ Features
|
| 15 |
+
|
| 16 |
+
### π **Professional Manga Creation**
|
| 17 |
+
- **Advanced AI Storytelling**: Enhanced narrative structure analysis with genre-specific templates
|
| 18 |
+
- **Intelligent Panel Composition**: Dynamic layouts optimized for visual storytelling
|
| 19 |
+
- **Character Development**: Multi-dimensional character profiles with consistency tracking
|
| 20 |
+
- **Professional Art Styles**: Shonen, Shojo, Seinen, and Chibi manga aesthetics
|
| 21 |
+
|
| 22 |
+
### π **Story Templates**
|
| 23 |
+
- **Hero's Journey**: Classic adventure narratives with character transformation
|
| 24 |
+
- **Mystery Thriller**: Suspenseful investigations with plot twists
|
| 25 |
+
- **Slice of Life**: Character-driven everyday moments
|
| 26 |
+
- **Sci-Fi Adventure**: Futuristic worlds with advanced technology
|
| 27 |
+
- **Romance Drama**: Emotional love stories with obstacles
|
| 28 |
+
- **Custom Story**: Complete creative freedom
|
| 29 |
+
|
| 30 |
+
### π¨ **Modern Interface**
|
| 31 |
+
- **Glass Morphism Design**: Sleek, professional dark theme with backdrop blur effects
|
| 32 |
+
- **Interactive Elements**: Smooth animations and hover effects
|
| 33 |
+
- **Responsive Layout**: Optimized for desktop and mobile devices
|
| 34 |
+
- **Real-time Progress**: Visual feedback during comic generation
|
| 35 |
+
|
| 36 |
+
## π Setup Instructions
|
| 37 |
+
|
| 38 |
+
1. **Get your API key**: Visit [Google AI Studio](https://makersuite.google.com/app/apikey) to get your free Gemini API key
|
| 39 |
+
2. **Enter your story**: Describe your manga story idea
|
| 40 |
+
3. **Choose template and style**: Select from professional story structures and art styles
|
| 41 |
+
4. **Generate**: Create your manga with AI-powered storytelling
|
| 42 |
+
5. **Download**: Export as high-quality PDF
|
| 43 |
+
|
| 44 |
+
## π― How It Works
|
| 45 |
+
|
| 46 |
+
1. **Choose a Template**: Select from professional story structures or start custom
|
| 47 |
+
2. **Craft Your Story**: Use the interactive editor with writing tips and guidance
|
| 48 |
+
3. **Select Art Style**: Choose from authentic Japanese manga aesthetics
|
| 49 |
+
4. **AI Generation**: Advanced algorithms create character profiles and panel layouts
|
| 50 |
+
5. **Visual Creation**: Google Gemini generates professional manga pages
|
| 51 |
+
6. **Download**: Export your manga as a high-quality PDF
|
| 52 |
+
|
| 53 |
+
## π§ Advanced Features
|
| 54 |
+
|
| 55 |
+
### **Narrative Structure Analysis**
|
| 56 |
+
- Automatic story pattern detection
|
| 57 |
+
- Genre-specific beat planning
|
| 58 |
+
- Character arc development
|
| 59 |
+
- Emotional pacing optimization
|
| 60 |
+
|
| 61 |
+
### **Professional Panel Composition**
|
| 62 |
+
- Dynamic layout analysis based on story content
|
| 63 |
+
- Style-specific visual arrangements
|
| 64 |
+
- Proper manga flow and reading patterns (right-to-left)
|
| 65 |
+
- Visual hierarchy optimization
|
| 66 |
+
|
| 67 |
+
### **Character Consistency**
|
| 68 |
+
- Multi-dimensional character profiles
|
| 69 |
+
- Visual trait consistency across panels
|
| 70 |
+
- Personality-driven design elements
|
| 71 |
+
- Relationship dynamics integration
|
| 72 |
+
|
| 73 |
+
## π¨ Technology Stack
|
| 74 |
+
|
| 75 |
+
- **Frontend**: React 19 + TypeScript
|
| 76 |
+
- **Styling**: Modern Glass Morphism Design
|
| 77 |
+
- **AI Engine**: Google Gemini 2.5 Flash + Image Preview
|
| 78 |
+
- **Build Tool**: Vite 6
|
| 79 |
+
- **Container**: Docker
|
| 80 |
+
- **PDF Generation**: Built-in export functionality
|
| 81 |
+
|
| 82 |
+
## π Local Development
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
# Clone the repository
|
| 86 |
+
git clone <your-repo-url>
|
| 87 |
+
cd comic-book-generator-2
|
| 88 |
+
|
| 89 |
+
# Install dependencies
|
| 90 |
+
npm install
|
| 91 |
+
|
| 92 |
+
# Run development server
|
| 93 |
+
npm run dev
|
| 94 |
+
|
| 95 |
+
# Build for production
|
| 96 |
+
npm run build
|
| 97 |
+
|
| 98 |
+
# Preview production build
|
| 99 |
+
npm run preview
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
## π³ Docker Deployment
|
| 103 |
+
|
| 104 |
+
```bash
|
| 105 |
+
# Build the Docker image
|
| 106 |
+
docker build -t manga-genesis-ai .
|
| 107 |
+
|
| 108 |
+
# Run the container
|
| 109 |
+
docker run -p 7860:7860 manga-genesis-ai
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## π License
|
| 113 |
+
|
| 114 |
+
This project is licensed under the MIT License.
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
**π¨ Transform your stories into authentic manga masterpieces with Manga Genesis AI!**
|
types.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface MangaPage {
|
|
| 21 |
panels: Panel[];
|
| 22 |
}
|
| 23 |
|
| 24 |
-
export type MangaStyle = 'Shonen' | 'Shojo' | 'Seinen' | 'Chibi';
|
| 25 |
|
| 26 |
export interface StoryTemplate {
|
| 27 |
id: string;
|
|
|
|
| 21 |
panels: Panel[];
|
| 22 |
}
|
| 23 |
|
| 24 |
+
export type MangaStyle = 'Shonen' | 'Shojo' | 'Seinen' | 'Chibi' | 'Wacky' | 'I don\'t know';
|
| 25 |
|
| 26 |
export interface StoryTemplate {
|
| 27 |
id: string;
|