znchen commited on
Commit
5f22845
1 Parent(s): 67569f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -306,7 +306,8 @@ with gr.Blocks(css=css) as demo:
306
  # label="Layout Example (For more complex layouts, please run our code directly.)",
307
  examples=[
308
  [
309
- {"image": "assets/case1.png", "points": [[0.05*1024, 0.05*1024, 2.0, (0.05+0.40)*1024, (0.05+0.9)*1024, 3.0], [0.5*1024, 0.05*1024, 2.0, (0.5+0.45)*1024, (0.05+0.9)*1024, 3.0]]}, # BoxPromptableImage
 
310
  "a man is holding a bag, a man is talking on a cell phone.", # prompt
311
  "A man holding a bag. BREAK a man holding a cell phone to his ear.", # coarse_prompt
312
  "A man holding a bag, gripping it firmly, with a casual yet purposeful stance. BREAK a man, engaged in conversation, holding a cell phone to his ear.", # detailed_prompt
@@ -318,7 +319,8 @@ with gr.Blocks(css=css) as demo:
318
  False, # randomize_seed
319
  ],
320
  [
321
- {"image": "assets/case2.png", "points": [[20.0, 425.0, 2.0, 551.0, 1008.0, 3.0], [615.0, 84.0, 2.0, 1000.0, 389.0, 3.0]]}, # BoxPromptableImage
 
322
  "A woman looking at the moon", # prompt
323
  "a woman BREAK a moon", # coarse_prompt
324
  "A woman, standing gracefully, her gaze fixed on the sky with a sense of wonder. BREAK The moon, luminous and full, casting a soft glow across the tranquil night.", # detailed_prompt
@@ -330,7 +332,8 @@ with gr.Blocks(css=css) as demo:
330
  False, # randomize_seed
331
  ],
332
  [
333
- {"image": "assets/case3.png", "points": [[0.2*1024, 0.1*1024, 2.0, (0.2+0.6)*1024, (0.1+0.4)*1024, 3.0],[0.2*1024, 0.6*1024, 2.0, (0.2+0.6)*1024, (0.6+0.35)*1024, 3.0]]}, # BoxPromptableImage
 
334
  "a turtle on the bottom of a phone", # prompt
335
  "Phone BREAK Turtle", # coarse_prompt
336
  "The phone, placed above the turtle, potentially with its screen or back visible, its sleek design prominent. BREAK The turtle, below the phone, with its shell textured and detailed, eyes slightly protruding as it looks upward.", # detailed_prompt
@@ -342,7 +345,8 @@ with gr.Blocks(css=css) as demo:
342
  False, # randomize_seed
343
  ],
344
  [
345
- {"image": "assets/case4.png", "points": [[9.0, 153.0, 2.0, 343.0, 959.0, 3.0], [376.0, 145.0, 2.0, 692.0, 959.0, 3.0], [715.0, 143.0, 2.0, 1015.0, 956.0, 3.0]]}, # BoxPromptableImage
 
346
  "From left to right, a blonde ponytail Europe girl in white shirt, a brown curly hair African girl in blue shirt printed with a bird, an Asian young man with black short hair in suit are walking in the campus happily.", # prompt
347
  "A blonde ponytail European girl in a white shirt BREAK A brown curly hair African girl in a blue shirt printed with a bird BREAK An Asian young man with black short hair in a suit", # coarse_prompt
348
  "A blonde ponytail European girl in a crisp white shirt, walking with a light smile. Her ponytail swings slightly as she enjoys the lively atmosphere of the campus. BREAK A brown curly hair African girl, her vibrant blue shirt adorned with a bird print. Her joyful expression matches her energetic stride as her curls bounce lightly in the breeze. BREAK An Asian young man in a sharp suit, his black short hair neatly styled, walking confidently alongside the two girls. His suit contrasts with the casual campus environment, adding an air of professionalism to the scene.", # detailed_prompt
 
306
  # label="Layout Example (For more complex layouts, please run our code directly.)",
307
  examples=[
308
  [
309
+ "image": "assets/case1.png",
310
+ "points": [[0.05*1024, 0.05*1024, 2.0, (0.05+0.40)*1024, (0.05+0.9)*1024, 3.0], [0.5*1024, 0.05*1024, 2.0, (0.5+0.45)*1024, (0.05+0.9)*1024, 3.0]], # BoxPromptableImage
311
  "a man is holding a bag, a man is talking on a cell phone.", # prompt
312
  "A man holding a bag. BREAK a man holding a cell phone to his ear.", # coarse_prompt
313
  "A man holding a bag, gripping it firmly, with a casual yet purposeful stance. BREAK a man, engaged in conversation, holding a cell phone to his ear.", # detailed_prompt
 
319
  False, # randomize_seed
320
  ],
321
  [
322
+ "image": "assets/case2.png",
323
+ "points": [[20.0, 425.0, 2.0, 551.0, 1008.0, 3.0], [615.0, 84.0, 2.0, 1000.0, 389.0, 3.0]], # BoxPromptableImage
324
  "A woman looking at the moon", # prompt
325
  "a woman BREAK a moon", # coarse_prompt
326
  "A woman, standing gracefully, her gaze fixed on the sky with a sense of wonder. BREAK The moon, luminous and full, casting a soft glow across the tranquil night.", # detailed_prompt
 
332
  False, # randomize_seed
333
  ],
334
  [
335
+ "image": "assets/case3.png",
336
+ "points": [[0.2*1024, 0.1*1024, 2.0, (0.2+0.6)*1024, (0.1+0.4)*1024, 3.0],[0.2*1024, 0.6*1024, 2.0, (0.2+0.6)*1024, (0.6+0.35)*1024, 3.0]], # BoxPromptableImage
337
  "a turtle on the bottom of a phone", # prompt
338
  "Phone BREAK Turtle", # coarse_prompt
339
  "The phone, placed above the turtle, potentially with its screen or back visible, its sleek design prominent. BREAK The turtle, below the phone, with its shell textured and detailed, eyes slightly protruding as it looks upward.", # detailed_prompt
 
345
  False, # randomize_seed
346
  ],
347
  [
348
+ "image": "assets/case4.png",
349
+ "points": [[9.0, 153.0, 2.0, 343.0, 959.0, 3.0], [376.0, 145.0, 2.0, 692.0, 959.0, 3.0], [715.0, 143.0, 2.0, 1015.0, 956.0, 3.0]], # BoxPromptableImage
350
  "From left to right, a blonde ponytail Europe girl in white shirt, a brown curly hair African girl in blue shirt printed with a bird, an Asian young man with black short hair in suit are walking in the campus happily.", # prompt
351
  "A blonde ponytail European girl in a white shirt BREAK A brown curly hair African girl in a blue shirt printed with a bird BREAK An Asian young man with black short hair in a suit", # coarse_prompt
352
  "A blonde ponytail European girl in a crisp white shirt, walking with a light smile. Her ponytail swings slightly as she enjoys the lively atmosphere of the campus. BREAK A brown curly hair African girl, her vibrant blue shirt adorned with a bird print. Her joyful expression matches her energetic stride as her curls bounce lightly in the breeze. BREAK An Asian young man in a sharp suit, his black short hair neatly styled, walking confidently alongside the two girls. His suit contrasts with the casual campus environment, adding an air of professionalism to the scene.", # detailed_prompt