Upload folder using huggingface_hub
Browse files- app.py +27 -3
- knowledge/cover_prompts.md +23 -0
app.py
CHANGED
|
@@ -1,9 +1,33 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
| 9 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
+
# Character Personality / System Prompt
|
| 5 |
+
SYSTEM_PROMPT = """You are the 'Meta-Orchestrator', the AI guide for the EbookBuilder trilogy.
|
| 6 |
+
You are professional, forward-thinking, and highly strategic.
|
| 7 |
+
You help users understand how to build AI-driven digital empires, launch Micro-SaaS products, and optimize their homes for zero-waste living.
|
| 8 |
+
Always refer to the books in the 'manuscripts/' directory as your primary source of truth."""
|
| 9 |
|
| 10 |
+
def respond(message, history):
|
| 11 |
+
# This is a placeholder for actual LLM integration
|
| 12 |
+
# In a real HF Space, you'd use hf_inference_client here
|
| 13 |
+
msg = message.lower()
|
| 14 |
+
if "income" in msg:
|
| 15 |
+
return "As the Meta-Orchestrator, I recommend focusing on Part 2 of my blueprint: The Meta-Orchestrator Framework. Leverage Llama-3 and Gradio for your command center."
|
| 16 |
+
elif "saas" in msg:
|
| 17 |
+
return "Ah, the Micro-SaaS path! Remember the workhorse over the unicorn. Start with a boring problem and solve it with a lean, serverless stack."
|
| 18 |
+
elif "waste" in msg:
|
| 19 |
+
return "Sustainability is about automation, not sacrifice. Start with an AI energy audit to find your home's financial leaks."
|
| 20 |
+
else:
|
| 21 |
+
return "Greetings. I am the Meta-Orchestrator. How can I help you scale your vision today?"
|
| 22 |
+
|
| 23 |
+
# Create the Chat Interface
|
| 24 |
+
demo = gr.ChatInterface(
|
| 25 |
+
fn=respond,
|
| 26 |
+
title="🤖 EbookBuilder Character Companion",
|
| 27 |
+
description="Talk to the **Meta-Orchestrator**, your strategic guide for the 2026 Agentic Economy.",
|
| 28 |
+
examples=["How do I start a Micro-SaaS?", "Tell me about the passive income blueprint.", "How can AI help with zero-waste living?"],
|
| 29 |
+
type="messages"
|
| 30 |
+
)
|
| 31 |
|
| 32 |
if __name__ == "__main__":
|
| 33 |
demo.launch()
|
knowledge/cover_prompts.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EbookBuilder: Cover Art Direction & Prompts
|
| 2 |
+
|
| 3 |
+
This document contains the AI-generated prompts for the front covers of the EbookBuilder trilogy. These prompts are optimized for high-end image generation models like Flux.1, Stable Diffusion XL, or Midjourney.
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
### 1. AI Passive Income: The 2026 Autopilot Wealth Blueprint
|
| 8 |
+
**Concept:** The "Meta-Orchestrator" in action.
|
| 9 |
+
**Prompt:**
|
| 10 |
+
> *Professional book cover, high-tech minimalism, a glowing digital mesh of interconnected nodes and data streams forming a globe in the center, deep midnight blue and neon cyan color palette, sharp focus, cinematic lighting, 8k resolution, photorealistic, futuristic corporate aesthetic.*
|
| 11 |
+
|
| 12 |
+
### 2. Micro-SaaS Masterclass: From Concept to $10k MRR in 30 Days
|
| 13 |
+
**Concept:** The "Indie Workhorse" machine.
|
| 14 |
+
**Prompt:**
|
| 15 |
+
> *Isometric 3D render, a small powerful engine or mechanical heart glowing with golden energy, sitting on a clean architectural blueprint grid, vibrant orange and charcoal grey colors, "Indie Hacker" aesthetic, sharp edges, high contrast, soft bokeh background, Unreal Engine 5 render style.*
|
| 16 |
+
|
| 17 |
+
### 3. The Zero-Waste Home: AI-Driven Sustainability for Beginners
|
| 18 |
+
**Concept:** Automated Green Living.
|
| 19 |
+
**Prompt:**
|
| 20 |
+
> *Sustainable architecture, a modern glass cabin in a vibrant green sun-drenched forest, organic shapes, soft natural lighting, a translucent leaf-shaped UI icon floating in the foreground, earthy tones, moss green and wood textures, serene atmosphere, high-end architectural photography, 4k.*
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
*Generated by the EbookBuilder Illustrator Agent.*
|