Update app.py
Browse files
app.py
CHANGED
|
@@ -393,14 +393,51 @@ with gr.Blocks(title="Nano Vision Studio") as demo:
|
|
| 393 |
# --- TAB 4 : GUIDE ---
|
| 394 |
with gr.TabItem("π Guide"):
|
| 395 |
gr.Markdown("""
|
| 396 |
-
#
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 404 |
""")
|
| 405 |
|
| 406 |
if __name__ == "__main__":
|
|
|
|
| 393 |
# --- TAB 4 : GUIDE ---
|
| 394 |
with gr.TabItem("π Guide"):
|
| 395 |
gr.Markdown("""
|
| 396 |
+
# Comprehensive Guide
|
| 397 |
+
|
| 398 |
+
Welcome to the ultimate interface for **Nano Banana Pro** (Gemini 3 Pro) and **Nano Banana** (Gemini 2.5 Flash).
|
| 399 |
+
|
| 400 |
+
## π Choose Your Model
|
| 401 |
+
|
| 402 |
+
| Feature | β‘ Gemini 2.5 Flash (Nano Banana) | π§ Gemini 3 Pro (Nano Banana Pro) |
|
| 403 |
+
| :--- | :--- | :--- |
|
| 404 |
+
| **Best For** | Speed, High Volume, Prototyping | Professional Assets, Complex Logic, Text Rendering |
|
| 405 |
+
| **Resolution** | 1024x1024 (Native) | Up to **4K** (High Fidelity) |
|
| 406 |
+
| **Inputs** | Text + Images | Text + up to **14 Reference Images** |
|
| 407 |
+
| **Special** | Fast & Efficient | **Thinking Process**, **Search Grounding** |
|
| 408 |
+
|
| 409 |
+
---
|
| 410 |
+
|
| 411 |
+
## β¨ Advanced Capabilities Explained
|
| 412 |
+
|
| 413 |
+
### 1. π§ The "Thinking" Process (Pro Only)
|
| 414 |
+
Nano Banana Pro doesn't just draw; it *thinks*. Before generating pixels, it reasons through your prompt to understand composition, lighting, and logic.
|
| 415 |
+
* **In this App:** Check the **"Thought Process"** accordion in the *Creation Studio* to read the model's internal monologue and see draft visualizations (Thought Images).
|
| 416 |
+
|
| 417 |
+
### 2. π Search Grounding (Real-Time Data)
|
| 418 |
+
The model isn't stuck in the past. It can access **Google Search** to generate images based on live data.
|
| 419 |
+
* **Try this:** "Visualize the current weather forecast for Tokyo as a modern chart."
|
| 420 |
+
* **In this App:** Enable the **"Grounding"** checkbox. Sources will appear below the generated image.
|
| 421 |
+
|
| 422 |
+
### 3. πΌοΈ Advanced Composition (up to 14 Images)
|
| 423 |
+
While Flash handles fewer inputs, Pro can mix up to **14 images**!
|
| 424 |
+
* **Use Case:** Style transfer, maintaining character consistency, or complex collages.
|
| 425 |
+
* **How:** Use the **"Composition"** tab to upload multiple reference files.
|
| 426 |
+
|
| 427 |
+
---
|
| 428 |
+
|
| 429 |
+
## π‘ Prompting Masterclass
|
| 430 |
+
|
| 431 |
+
To get the best results, follow these professional tips:
|
| 432 |
+
|
| 433 |
+
* **Be Hyper-Specific:** Don't just say "a cat". Say *"A photorealistic close-up of a Siamese cat, golden hour lighting, captured with an 85mm lens"*.
|
| 434 |
+
* **Provide Context:** Explain the intent. *"Create a logo for a high-end minimalist skincare brand"*.
|
| 435 |
+
* **Positive Framing:** Instead of "no cars", describe the scene as *"an empty, deserted street"*.
|
| 436 |
+
* **Iterate with Chat:** Don't expect perfection on turn #1. Use the **Chat & Refinement** tab to say *"Make the lighting warmer"* or *"Add a wizard hat"*.
|
| 437 |
+
|
| 438 |
+
## β‘ Performance Tips
|
| 439 |
+
* **4K Generation:** Available only on Pro. It costs more but delivers stunning print-quality results.
|
| 440 |
+
* **Aspect Ratios:** We support everything from **1:1** to **21:9** (Cinematic).
|
| 441 |
""")
|
| 442 |
|
| 443 |
if __name__ == "__main__":
|