Yw22 commited on
Commit
47fa912
·
1 Parent(s): b8c6e09
Files changed (1) hide show
  1. app.py +45 -32
app.py CHANGED
@@ -109,33 +109,6 @@ os.system(f'mv models/personalized/TUSUN.safetensors?download=true models/person
109
 
110
 
111
  # - - - - - examples - - - - - #
112
- image_examples = [
113
- ["__asset__/images/object/turtle-1.jpg",
114
- "a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
115
- ],
116
-
117
- ["__asset__/images/object/rose-1.jpg",
118
- "a red rose engulfed in flames.",
119
- ],
120
-
121
- ["__asset__/images/object/jellyfish-1.jpg",
122
- "intricate detailing,photorealism,hyperrealistic, glowing jellyfish mushroom, flying, starry sky, bokeh, golden ratio composition.",
123
- ],
124
-
125
-
126
- ["__asset__/images/camera/lush-1.jpg",
127
- "detailed craftsmanship, photorealism, hyperrealistic, roaring waterfall, misty spray, lush greenery, vibrant rainbow, golden ratio composition.",
128
- ],
129
-
130
- ["__asset__/images/camera/tusun-1.jpg",
131
- "tusuncub with its mouth open, blurry, open mouth, fangs, photo background, looking at viewer, tongue, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing.",
132
- ],
133
-
134
- ["__asset__/images/camera/painting-1.jpg",
135
- "A oil painting.",
136
- ],
137
-
138
- ]
139
 
140
  # image_examples = [
141
  # ["__asset__/images/object/turtle-1.jpg",
@@ -195,6 +168,46 @@ image_examples = [
195
 
196
  # ]
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
 
199
  DREAM_BOOTH = {
200
  'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
@@ -599,8 +612,8 @@ with block as demo:
599
  # def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
600
 
601
  # return input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path
602
- def process_example(input_image, prompt):
603
- return input_image, prompt
604
 
605
  # example = gr.Examples(
606
  # label="Input Example",
@@ -616,11 +629,11 @@ with block as demo:
616
  example = gr.Examples(
617
  label="Input Example",
618
  examples=image_examples,
619
- inputs=[input_image, prompt],
620
- outputs=[input_image, prompt],
621
  fn=process_example,
622
  run_on_click=True,
623
- examples_per_page=10,
624
  cache_examples=False,
625
  )
626
 
 
109
 
110
 
111
  # - - - - - examples - - - - - #
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  # image_examples = [
114
  # ["__asset__/images/object/turtle-1.jpg",
 
168
 
169
  # ]
170
 
171
+ image_examples = [
172
+ ["__asset__/images/object/turtle-1.jpg",
173
+ "a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
174
+ "object",
175
+ 11318446767408804497,
176
+ ],
177
+
178
+ ["__asset__/images/object/rose-1.jpg",
179
+ "a red rose engulfed in flames.",
180
+ "object",
181
+ 6854275249656120509,
182
+ ],
183
+
184
+ ["__asset__/images/object/jellyfish-1.jpg",
185
+ "intricate detailing,photorealism,hyperrealistic, glowing jellyfish mushroom, flying, starry sky, bokeh, golden ratio composition.",
186
+ "object",
187
+ 17966188172968903484,
188
+ ],
189
+
190
+
191
+ ["__asset__/images/camera/lush-1.jpg",
192
+ "detailed craftsmanship, photorealism, hyperrealistic, roaring waterfall, misty spray, lush greenery, vibrant rainbow, golden ratio composition.",
193
+ "camera",
194
+ 7970487946960948963,
195
+ ],
196
+
197
+ ["__asset__/images/camera/tusun-1.jpg",
198
+ "tusuncub with its mouth open, blurry, open mouth, fangs, photo background, looking at viewer, tongue, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing.",
199
+ "camera",
200
+ 996953226890228361,
201
+ ],
202
+
203
+ ["__asset__/images/camera/painting-1.jpg",
204
+ "A oil painting.",
205
+ "camera",
206
+ 16867854766769816385,
207
+ ],
208
+
209
+ ]
210
+
211
 
212
  DREAM_BOOTH = {
213
  'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
 
612
  # def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
613
 
614
  # return input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path
615
+ def process_example(input_image, prompt, drag_mode, seed):
616
+ return input_image, prompt, drag_mode, seed
617
 
618
  # example = gr.Examples(
619
  # label="Input Example",
 
629
  example = gr.Examples(
630
  label="Input Example",
631
  examples=image_examples,
632
+ inputs=[input_image, prompt, drag_mode, seed],
633
+ outputs=[input_image, prompt, drag_mode, seed],
634
  fn=process_example,
635
  run_on_click=True,
636
+ examples_per_page=20,
637
  cache_examples=False,
638
  )
639