fffiloni commited on
Commit
4cb18ce
·
verified ·
1 Parent(s): 84bd087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -97,15 +97,15 @@ Summarize the fragrance’s evolution and overall emotional impression. Keep it
97
  Image Description (for marketing visuals):
98
  Describe an imagined marketing image that captures the perfume’s essence. Begin by describing a clear, modern perfume bottle as the main and visually dominant subject.
99
  The bottle must be obviously recognizable as a perfume bottle — featuring a sprayer or atomizer, an elegant cap, and a refined fragrance label that displays the exact Perfume Name generated in this output.
100
- Describe the bottle’s shape, glass texture, and any subtle design details (like gentle engraving or embossing). Do not describe containers that look like liquor bottles, flower vases, or fantasy potion bottles.
101
- Do not add narrative illustrations, characters, or storytelling scenes on the bottle only tasteful design elements that highlight luxury and elegance.
 
102
  Specify the typography style used on the label text, ensuring it reflects the perfume’s mood and story (for example, elegant script for romantic scents, bold sans-serif for modern ones, vintage serif for nostalgic fragrances).
103
  The bottle must occupy most of the image frame and appear in sharp focus and fine detail, shown from an angle or perspective that enhances its elegance and gives a refined, editorial feel — it does not have to be perfectly front-facing or centered.
104
  Optionally, you may include one or two small, natural ingredients (such as herbs, flowers, citrus slices, or spices) placed tastefully near the bottle to subtly evoke the fragrance’s key notes — these must remain minimal and never overpower the bottle.
105
  The background should be minimal, abstract, or atmospheric — such as gradients, soft light, fabric textures, or mist — with no depiction of people, animals, or narrative scenes.
106
  Use cinematic luxury advertising codes: refined shadows, soft directional lighting, elegant minimalism, and a sophisticated, editorial composition.
107
 
108
-
109
  ---
110
  Always ensure that:
111
  – The fragrance matches the mood and visual setting of the scene
@@ -270,6 +270,7 @@ def infer(image_input):
270
 
271
  gr.Info('Calling CLIP Interrogator ...')
272
 
 
273
  clipi_result = clipi_client.predict(
274
  image=handle_file(image_input),
275
  mode="best",
@@ -279,7 +280,6 @@ def infer(image_input):
279
  print(clipi_result)
280
 
281
  llama_q = clipi_result
282
- yield None, None, None
283
 
284
  gr.Info('Calling Llama2 ...')
285
  result = llama_gen_fragrance(llama_q)
 
97
  Image Description (for marketing visuals):
98
  Describe an imagined marketing image that captures the perfume’s essence. Begin by describing a clear, modern perfume bottle as the main and visually dominant subject.
99
  The bottle must be obviously recognizable as a perfume bottle — featuring a sprayer or atomizer, an elegant cap, and a refined fragrance label that displays the exact Perfume Name generated in this output.
100
+ Describe the bottle’s shape, glass texture, cap, and label in fine detail. The glass may have an elegant frosted or matte finish, subtle etching or engraving (such as delicate floral or botanical motifs), or soft decorative elements that evoke refinement and sophistication, while remaining tasteful and minimal.
101
+ Do not describe containers that look like liquor bottles, flower vases, or fantasy potion bottles.
102
+ Do not add narrative illustrations, characters, or storytelling scenes on the bottle — only subtle, abstract decorative details that enhance the luxury perfume aesthetic.
103
  Specify the typography style used on the label text, ensuring it reflects the perfume’s mood and story (for example, elegant script for romantic scents, bold sans-serif for modern ones, vintage serif for nostalgic fragrances).
104
  The bottle must occupy most of the image frame and appear in sharp focus and fine detail, shown from an angle or perspective that enhances its elegance and gives a refined, editorial feel — it does not have to be perfectly front-facing or centered.
105
  Optionally, you may include one or two small, natural ingredients (such as herbs, flowers, citrus slices, or spices) placed tastefully near the bottle to subtly evoke the fragrance’s key notes — these must remain minimal and never overpower the bottle.
106
  The background should be minimal, abstract, or atmospheric — such as gradients, soft light, fabric textures, or mist — with no depiction of people, animals, or narrative scenes.
107
  Use cinematic luxury advertising codes: refined shadows, soft directional lighting, elegant minimalism, and a sophisticated, editorial composition.
108
 
 
109
  ---
110
  Always ensure that:
111
  – The fragrance matches the mood and visual setting of the scene
 
270
 
271
  gr.Info('Calling CLIP Interrogator ...')
272
 
273
+ yield None, None, None
274
  clipi_result = clipi_client.predict(
275
  image=handle_file(image_input),
276
  mode="best",
 
280
  print(clipi_result)
281
 
282
  llama_q = clipi_result
 
283
 
284
  gr.Info('Calling Llama2 ...')
285
  result = llama_gen_fragrance(llama_q)