Spaces:
Running
Running
Commit
·
f792238
1
Parent(s):
821924e
change prompt for llama vision
Browse files
app.py
CHANGED
@@ -72,7 +72,15 @@ def generate_description_fn(
|
|
72 |
{
|
73 |
"role": "user",
|
74 |
"content": [
|
75 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
{
|
77 |
"type": "image_url",
|
78 |
"image_url": {
|
@@ -85,7 +93,7 @@ def generate_description_fn(
|
|
85 |
model="llama-3.2-11b-vision-preview",
|
86 |
)
|
87 |
|
88 |
-
return chat_completion.choices[0].message.content
|
89 |
|
90 |
|
91 |
css = """
|
|
|
72 |
{
|
73 |
"role": "user",
|
74 |
"content": [
|
75 |
+
{
|
76 |
+
"type": "text",
|
77 |
+
"text": """
|
78 |
+
I want you to imagine how the technical flat sketch of the principal garment in the picture would look like, both front and back, and describe it to me in rich details, in one paragraph.
|
79 |
+
|
80 |
+
The style of the result should look somewhat like the following example:
|
81 |
+
The technical flat sketch of the dress would depict a midi-length, off-the-shoulder design with a smocked bodice and short puff sleeves that have elasticized cuffs. The elastic neckline sits straight across the chest and back, ensuring a secure fit. The bodice transitions into a flowy, tiered skirt with three evenly spaced gathered panels, creating soft volume. The back view mirrors the front, maintaining the smocked fit and tiered skirt without visible closures, suggesting a pullover style. Elasticized areas would be marked with textured lines, while the gathers and drape would be indicated through subtle curved strokes, ensuring clarity in construction details.
|
82 |
+
"""
|
83 |
+
},
|
84 |
{
|
85 |
"type": "image_url",
|
86 |
"image_url": {
|
|
|
93 |
model="llama-3.2-11b-vision-preview",
|
94 |
)
|
95 |
|
96 |
+
return chat_completion.choices[0].message.content + "In the style of FLTSKC"
|
97 |
|
98 |
|
99 |
css = """
|