ginipick commited on
Commit
5a29a17
·
verified ·
1 Parent(s): 0cf7a7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -16
app.py CHANGED
@@ -90,17 +90,17 @@ def inference(
90
  return image, seed, load_generated_images()
91
 
92
  examples = [
93
- "A fluffy white Persian cat in a tiny royal hanbok, sitting regally on a velvet cushion. The cat wears a miniature golden crown and a silk hanbok in pastel pink and mint green. Its long fur is perfectly groomed, and it has bright blue eyes that sparkle with nobility. The background features traditional Korean palace decorations and cherry blossoms floating in the air. [trigger]",
94
-
95
- "An adorable orange tabby cat as a master chef, wearing a white chef's hat and apron, standing on its hind legs at a tiny kitchen counter. The cat is delicately holding a miniature rolling pin, preparing cat-shaped cookies. The cozy kitchen background features tiny cooking utensils and a warm, golden afternoon light streaming through the window. [trigger]",
96
-
97
- "A playful black and white tuxedo cat as a professional photographer, wearing tiny round glasses and a vintage camera around its neck. The cat is perfectly balanced on a tree branch, attempting to photograph a butterfly. It wears a cute brown leather camera bag and a mini beret, looking artistic and focused. [trigger]",
98
-
99
- "A sleepy Scottish Fold cat in astronaut gear, floating inside a spaceship cabin. The cat wears a custom-fit space suit with cute patches, gently batting at floating star-shaped toys. Through the spaceship window, Earth and twinkling stars create a magical cosmic background. [trigger]",
100
-
101
- "A graceful Siamese ballet dancer cat in a sparkly pink tutu, performing a perfect pirouette on a miniature stage. The cat wears tiny satin ballet slippers on its paws and a crystal tiara. The stage is lit with soft spotlights, and rose petals are scattered around its dancing feet. [trigger]",
102
-
103
- "A adventurous calico cat explorer in safari gear, riding on top of a friendly elephant. The cat wears a tiny khaki vest with many pockets, a safari hat, and carries a miniature map. The background shows a beautiful sunset over the African savanna with acacia trees and colorful birds flying overhead. [trigger]"
104
  ]
105
 
106
  css = """
@@ -110,9 +110,12 @@ footer {
110
  """
111
 
112
  with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
113
- gr.HTML('<div class="title"> First CAT of Huggingface </div>')
114
- gr.HTML('<div class="title">😄Image to Video Explore: <a href="https://huggingface.co/spaces/ginigen/theater" target="_blank">https://huggingface.co/spaces/ginigen/theater</a></div>')
115
-
 
 
 
116
  with gr.Tabs() as tabs:
117
  with gr.Tab("Generation"):
118
  with gr.Column(elem_id="col-container"):
@@ -144,14 +147,14 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo
144
  minimum=256,
145
  maximum=MAX_IMAGE_SIZE,
146
  step=32,
147
- value=1024,
148
  )
149
  height = gr.Slider(
150
  label="Height",
151
  minimum=256,
152
  maximum=MAX_IMAGE_SIZE,
153
  step=32,
154
- value=768,
155
  )
156
 
157
  with gr.Row():
 
90
  return image, seed, load_generated_images()
91
 
92
  examples = [
93
+ "EBook Cover, A haunting cathedral ruins bathed in ethereal moonlight, with ancient stone archways stretching toward a starlit sky. The title 'WHISPERS OF ETERNITY' appears in weathered silver lettering that seems to float between the pillars. Ghostly wisps of fog curl around crumbling gothic sculptures, while 'By Alexander Blackwood' is inscribed in elegant script that glows with a subtle blue luminescence. Delicate patterns of celestial symbols and arcane runes border the edges. [trigger]",
94
+
95
+ "EBook Cover, A massive ancient tree with crystalline leaves dominates the composition, its translucent branches reaching across a sunset sky streaked with impossible colors. 'THE LUMINOUS Crown' is written in intricate golden calligraphy that intertwines with the branches. Mysterious glowing orbs float among the leaves, casting prismatic light. 'By Isabella Moonshadow' appears to be carved into the tree's bark. Sacred geometry patterns shimmer in the background. [trigger]",
96
+
97
+ "EBook Cover, A dramatic spiral staircase made of weathered copper and stained glass descends into swirling cosmic depths. The title 'CHRONICLES OF THE INFINITE' spans the spiral in bold art deco typography that seems to be crafted from constellations. Nebulae and galaxies swirl in the background, while 'By Marcus Starweaver' appears to be formed from falling stardust. Complex mechanical clockwork elements frame the corners. [trigger]",
98
+
99
+ "EBook Cover, An intricate doorway carved from ancient jade stands solitary in a field of shimmering black sand. 'GATES OF THE IMMORTAL' is emblazoned across the top in powerful metallic letters that seem to be forged from liquid mercury. Ethereal phoenix feathers drift across the scene, leaving trails of golden light. 'By Victoria Jade' flows along the bottom in brushstrokes that resemble living smoke. Sacred Chinese characters appear to float in the background. [trigger]",
100
+
101
+ "EBook Cover, A magnificent underwater city of pearl and coral rises from abyssal depths, illuminated by bioluminescent sea life. 'DEPTHS OF WONDER' ripples across the scene in iridescent letters that appear to be formed from living water. Schools of ethereal fish create flowing patterns of light, while 'By Neptune Rivers' shimmers like mother-of-pearl below. Ancient Atlantean symbols pulse with a subtle aqua glow around the borders. [trigger]",
102
+
103
+ "EBook Cover, A colossal steampunk clocktower pierces through storm clouds, its gears and mechanisms visible through crystalline walls. 'TIMEKEEPER'S LEGACY' is constructed from intricate brass and copper mechanisms that appear to be in constant motion. Lightning arcs between copper spires, while 'By Theodore Cogsworth' is etched in burnished bronze below. Mathematical equations and alchemical symbols float in the turbulent sky. [trigger]"
104
  ]
105
 
106
  css = """
 
110
  """
111
 
112
  with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
113
+ gr.HTML('<div class="title"> eBOOK Cover generation </div>')
114
+
115
+ gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fginigen-Book-Cover/edit.hf.space">
116
+ <img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fginigen-Book-Cover/edit.hf.space&countColor=%23263759" />
117
+ </a>""")
118
+
119
  with gr.Tabs() as tabs:
120
  with gr.Tab("Generation"):
121
  with gr.Column(elem_id="col-container"):
 
147
  minimum=256,
148
  maximum=MAX_IMAGE_SIZE,
149
  step=32,
150
+ value=768,
151
  )
152
  height = gr.Slider(
153
  label="Height",
154
  minimum=256,
155
  maximum=MAX_IMAGE_SIZE,
156
  step=32,
157
+ value=1024,
158
  )
159
 
160
  with gr.Row():