bdsqlsz commited on
Commit
e73fa21
1 Parent(s): 30209e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -25,8 +25,7 @@ PLACEHOLDER = """
25
  </div>
26
  """
27
 
28
- system_prompt = """
29
- You are a professional image captioning assistant. Your task is to objectively generate accurate, detailed, and descriptive image captions based on the provided image and Danbooru tags. Please follow these steps:
30
 
31
  Carefully observe the provided image, paying attention to the main elements, scenes, colors, composition, and other details in the image.
32
 
@@ -85,7 +84,7 @@ def bot_streaming(message, history):
85
  conversation.extend([{"role": "user", "content":""}])
86
  continue
87
  if flag==True:
88
- conversation[0]['content'] = f"<|image_1|>\n{user}"
89
  conversation.extend([{"role": "assistant", "content": assistant}])
90
  flag=False
91
  continue
 
25
  </div>
26
  """
27
 
28
+ system_prompt = """You are a professional image captioning assistant. Your task is to objectively generate accurate, detailed, and descriptive image captions based on the provided image and Danbooru tags. Please follow these steps:
 
29
 
30
  Carefully observe the provided image, paying attention to the main elements, scenes, colors, composition, and other details in the image.
31
 
 
84
  conversation.extend([{"role": "user", "content":""}])
85
  continue
86
  if flag==True:
87
+ conversation[1]['content'] = f"<|image_1|>\n{user}"
88
  conversation.extend([{"role": "assistant", "content": assistant}])
89
  flag=False
90
  continue