Spaces:
Running
Running
mrbeliever
commited on
Commit
•
ce7f596
1
Parent(s):
3897102
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,12 @@ def generate_caption(image_base64, api_key):
|
|
23 |
"messages": [
|
24 |
{
|
25 |
"role": "system",
|
26 |
-
"content": """
|
27 |
},
|
28 |
{
|
29 |
"role": "user",
|
30 |
"content": [
|
31 |
-
{"type": "text", "text": "
|
32 |
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_base64}"}},
|
33 |
],
|
34 |
},
|
|
|
23 |
"messages": [
|
24 |
{
|
25 |
"role": "system",
|
26 |
+
"content": """observe each and every detail of the image and craft a detailed prompt in this format: [image content/subject, description of action, state, and mood], [art form, style], [artist/photographer reference if needed], [additional settings such as camera and lens settings, lighting, colors, effects, texture, background, rendering].""",
|
27 |
},
|
28 |
{
|
29 |
"role": "user",
|
30 |
"content": [
|
31 |
+
{"type": "text", "text": "Describe This Image In Great Details"},
|
32 |
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_base64}"}},
|
33 |
],
|
34 |
},
|