mrbeliever commited on
Commit
ce7f596
1 Parent(s): 3897102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,12 +23,12 @@ def generate_caption(image_base64, api_key):
23
  "messages": [
24
  {
25
  "role": "system",
26
- "content": """You are an image to prompt converter. Your work is to observe each and every detail of the image and craft a detailed prompt under 75 words 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": "Write a caption for this image"},
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
  },