Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,76 @@ def generate_image(prompt, height, width, num_inference_steps, seed, randomize_s
|
|
| 36 |
|
| 37 |
return image, seed
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Example prompts
|
| 40 |
examples = [
|
| 41 |
["""A highly detailed, gritty cyberpunk street scene in Shinjuku, Tokyo at night. In the foreground, a retro-futuristic cyberpunk Porsche 911 with a widebody kit, exposed chrome engine parts, and neon blue underglow. Steam is heavily rising from the glowing brake discs. Torrential post-rain mist. The street is illuminated by blinding cyan and magenta Japanese neon typography and holographic projections. Cinematic ray-tracing lighting, chiaroscuro, wet surface reflections, highly detailed textures, masterpiece, Unreal Engine 5 render style."""],
|
|
@@ -45,6 +115,7 @@ examples = [
|
|
| 45 |
["""Macro photography of a single water droplet on a deep green fern leaf. An entire forest is reflected inside the droplet. Extremely shallow depth of field, intricate leaf texture, natural sunlight filtering through the canopy, 100mm macro lens aesthetic."""],
|
| 46 |
["""Abstract, high-end macro photography of a futuristic digital landscape representing a smart network. Instead of traditional roads, glowing fiber-optic data streams in vivid valantic red (#FF4B4B) and orange (#FF744F) flow organically, perfectly mimicking the elegant curves of topographical contour lines. These luminous contour lines glide smoothly over a sleek, dark geometric terrain made of deep indigo (#193773) and midnight black (#100C2A) matte metal and dark glass structures. Key intersection points in the data flow spark with subtle vibrant purple (#5B26B7) and gold (#C0AA81) light. In the soft, out-of-focus background, a translucent frosted glass monolith subtly displays the word "valantic" in a clean, lowercase font. High contrast, premium "dark mode" aesthetic, tilt-shift lens effect, dramatic cinematic depth of field, 8k resolution, ultra-detailed Unreal Engine 5 render style."""],
|
| 47 |
["""A dramatic oil painting in the style of Caravaggio. A lone astronomer sitting at a wooden table, studying an ancient star map by candlelight. Strong chiaroscuro, visible brushstrokes, rich textures of parchment and heavy velvet, deep gold and brown tones."""],
|
|
|
|
| 48 |
]
|
| 49 |
|
| 50 |
|
|
|
|
| 36 |
|
| 37 |
return image, seed
|
| 38 |
|
| 39 |
+
ci-look = """
|
| 40 |
+
This describes a general valantic CI-Look targeted: Here is the detailed, structured description of the valantic Corporate Design (CI-Look) translated into English. This is formatted perfectly to be used as a system prompt or context window for other LLMs generating text, HTML/CSS mockups, or presentation structures.
|
| 41 |
+
|
| 42 |
+
**General Style & Tone:**
|
| 43 |
+
The design is modern, uncluttered, "clean," and heavily driven by whitespace. It conveys a professional, elegant, and technological feel, while utilizing organic shapes and warm color gradients to remain human and approachable.
|
| 44 |
+
|
| 45 |
+
## 1. Color Palette (Color Codes)
|
| 46 |
+
|
| 47 |
+
The color scheme is based on a strong contrast between a very dark blue/black, ample white space, and a striking, warm red-orange gradient.
|
| 48 |
+
|
| 49 |
+
**Background & Text:**
|
| 50 |
+
* **Background (Primary):** White (`#FFFFFF`) – predominantly used to create generous whitespace.
|
| 51 |
+
* **valantic Black (Text & Logo):** A very dark black-blue (`#100C2A`). Used for body text, primary headings, and the standard logo.
|
| 52 |
+
* **Dark Gradient:** A 45° linear gradient based on valantic Black (ending in a slightly lighter dark blue).
|
| 53 |
+
|
| 54 |
+
**valantic Main Colors (Brand Colors):**
|
| 55 |
+
* **valantic Red 01:** `#FF4B4B`
|
| 56 |
+
* **valantic Orange:** `#FF744F`
|
| 57 |
+
* **Primary Brand Gradient:** A 315° linear gradient transitioning from valantic Red 01 to valantic Orange. This gradient is the central visual highlight element.
|
| 58 |
+
|
| 59 |
+
**Theme Colors (Depending on the "Route" / Sub-style):**
|
| 60 |
+
* **Indigo:** `#193773` (Route A - informative, reserved, elegant)
|
| 61 |
+
* **Royal Blue:** `#3c4bc8` (Route B - confident, activating, human)
|
| 62 |
+
* **Vibrant Purple:** `#5b26b7` (Route C - dynamic, present, expressive)
|
| 63 |
+
* **Joker / Neutral:** Silver (`#cdcdcd`) – may always be used as a supplementary color.
|
| 64 |
+
* **Additional Theme Colors:** Lavender (`#a78db6`) and Gold (`#c0aa81`).
|
| 65 |
+
|
| 66 |
+
## 2. Typography
|
| 67 |
+
|
| 68 |
+
The corporate typeface is visibly **Segoe UI** (variable in Light, Regular, and Semibold).
|
| 69 |
+
|
| 70 |
+
* **Headlines:** * Often set in a very light font weight (Segoe UI Light) or Semibold, depending on the level.
|
| 71 |
+
* **Two-Tone Styling:** A core CI characteristic is splitting a headline's color. The first part is written in *valantic Black*, while the second part (the highlighted keyword) is colored with the *Red-Orange Gradient* (or a lighter solid theme color).
|
| 72 |
+
* **Casing:** Often entirely in lowercase or Sentence case (only the first letter capitalized).
|
| 73 |
+
* **Kickers / Eyebrows (Dachzeilen):** Very small, uppercase, with significantly expanded letter spacing. Usually set in gray (Silver). *Example: "A 010 : CONTENT : PICTURE RIGHT 17CM"*
|
| 74 |
+
* **Body Text:** Standard Segoe UI Regular, in *valantic Black*. Optimized for clean legibility, left-aligned.
|
| 75 |
+
* **Bullet Points:** Do not use standard black dots. Instead, use small dots colored in the red/orange theme.
|
| 76 |
+
|
| 77 |
+
## 3. Graphical Elements & Shapes
|
| 78 |
+
|
| 79 |
+
Depending on the desired tone ("Route"), valantic uses different graphical stylistic devices, which are consistently placed asymmetrically at the edges of the canvas:
|
| 80 |
+
|
| 81 |
+
* **Route A (Standard design for most slides):**
|
| 82 |
+
* **Topographic Contour Lines:** Very fine, wavy, organically flowing lines resembling elevation lines on maps. These are usually colored using the *Red-Orange Gradient*.
|
| 83 |
+
* *Placement:* They typically bleed into the whitespace from the corners or edges without overlapping the text.
|
| 84 |
+
* **Route B:**
|
| 85 |
+
* **Blobs:** Organic, flowing, solid-filled drop/blob shapes colored with the *Red-Orange Gradient*.
|
| 86 |
+
* **Route C:**
|
| 87 |
+
* **Masks:** Dynamic, asymmetrical organic shapes used as clipping masks for photography.
|
| 88 |
+
* **UI Elements / Lists / Processes:**
|
| 89 |
+
* Frequent use of "Pill Shapes" (rectangles with fully rounded corners, resembling a half-circle on both ends).
|
| 90 |
+
* *Inactive State:* Gray/black outline, filled with white.
|
| 91 |
+
* *Active / Highlight State:* Solid fill with *Indigo (`#193773`)*, containing white text and icons.
|
| 92 |
+
* *Icons:* Linear, filigree outline style.
|
| 93 |
+
|
| 94 |
+
## 4. Layout Principles & Grid
|
| 95 |
+
|
| 96 |
+
* **Logo Placement:** The logo ("valantic" in lowercase, bold) is often positioned at the top left on title slides, and at the bottom left in the footer on content slides.
|
| 97 |
+
* **Whitespace:** Treated as an active design element. Content is never crowded; layouts breathe.
|
| 98 |
+
* **Imagery:** Photos are either placed full-bleed ("edge-to-edge") on one half of the screen (e.g., right half image, left half text), or arranged side-by-side in uniform rectangular formats with slightly rounded corners.
|
| 99 |
+
* **Footer:** Minimalist. Left: Logo in valantic Black. Center: Date in a very small, light gray font. Right: Slide/Layout name and page number, also small and light gray.
|
| 100 |
+
|
| 101 |
+
## 5. Application Instructions for LLMs
|
| 102 |
+
*When instructed to generate output adhering to the valantic CI-Look, you must:*
|
| 103 |
+
* Maximize the use of whitespace; avoid cluttered layouts.
|
| 104 |
+
* Visually separate important keywords in headings (instruct the UI to use the red-orange gradient or red color for the highlight word).
|
| 105 |
+
* Format containers, buttons, and list items with fully rounded corners (e.g., `border-radius: 999px` or pill shapes).
|
| 106 |
+
* Use a clean sans-serif font (specifically Segoe UI if available, otherwise a close alternative like system-ui).
|
| 107 |
+
* Conceptually integrate fine, wavy topographic background lines extending from the edges when describing or generating visual UI layouts.
|
| 108 |
+
"""
|
| 109 |
# Example prompts
|
| 110 |
examples = [
|
| 111 |
["""A highly detailed, gritty cyberpunk street scene in Shinjuku, Tokyo at night. In the foreground, a retro-futuristic cyberpunk Porsche 911 with a widebody kit, exposed chrome engine parts, and neon blue underglow. Steam is heavily rising from the glowing brake discs. Torrential post-rain mist. The street is illuminated by blinding cyan and magenta Japanese neon typography and holographic projections. Cinematic ray-tracing lighting, chiaroscuro, wet surface reflections, highly detailed textures, masterpiece, Unreal Engine 5 render style."""],
|
|
|
|
| 115 |
["""Macro photography of a single water droplet on a deep green fern leaf. An entire forest is reflected inside the droplet. Extremely shallow depth of field, intricate leaf texture, natural sunlight filtering through the canopy, 100mm macro lens aesthetic."""],
|
| 116 |
["""Abstract, high-end macro photography of a futuristic digital landscape representing a smart network. Instead of traditional roads, glowing fiber-optic data streams in vivid valantic red (#FF4B4B) and orange (#FF744F) flow organically, perfectly mimicking the elegant curves of topographical contour lines. These luminous contour lines glide smoothly over a sleek, dark geometric terrain made of deep indigo (#193773) and midnight black (#100C2A) matte metal and dark glass structures. Key intersection points in the data flow spark with subtle vibrant purple (#5B26B7) and gold (#C0AA81) light. In the soft, out-of-focus background, a translucent frosted glass monolith subtly displays the word "valantic" in a clean, lowercase font. High contrast, premium "dark mode" aesthetic, tilt-shift lens effect, dramatic cinematic depth of field, 8k resolution, ultra-detailed Unreal Engine 5 render style."""],
|
| 117 |
["""A dramatic oil painting in the style of Caravaggio. A lone astronomer sitting at a wooden table, studying an ancient star map by candlelight. Strong chiaroscuro, visible brushstrokes, rich textures of parchment and heavy velvet, deep gold and brown tones."""],
|
| 118 |
+
[ci-look + "TARGET PICTURE: a PPT about LLMOps"],
|
| 119 |
]
|
| 120 |
|
| 121 |
|