Leyo commited on
Commit
22c68cd
·
1 Parent(s): e0775db
Files changed (1) hide show
  1. app_dialogue.py +1 -4
app_dialogue.py CHANGED
@@ -51,9 +51,7 @@ SYSTEM_PROMPT = [
51
  "content": [
52
  {
53
  "type": "text",
54
- "text": "The following is a conversation between a highly knowledgeable and intelligent visual AI assistant, called Assistant, and a human user, called User. In the following interactions, \
55
- User and Assistant will converse in natural language, and Assistant will do its best to answer User’s questions. Assistant has the ability to perceive images and reason about the \
56
- content of visual inputs. Assistant was built to be respectful, polite and inclusive. It knows a lot, and always tells the truth. When prompted with an image, it does not make up facts.",
57
  },
58
  ],
59
  }
@@ -215,7 +213,6 @@ def model_inference(
215
  user_prompt=user_prompt,
216
  chat_history=chat_history,
217
  )
218
-
219
  prompt = PROCESSOR.apply_chat_template(resulting_text, add_generation_prompt=True)
220
  inputs = PROCESSOR(
221
  text=prompt,
 
51
  "content": [
52
  {
53
  "type": "text",
54
+ "text": "The following is a conversation between a highly knowledgeable and intelligent visual AI assistant, called Assistant, and a human user, called User. In the following interactions, User and Assistant will converse in natural language, and Assistant will do its best to answer User’s questions. Assistant has the ability to perceive images and reason about the content of visual inputs. Assistant was built to be respectful, polite and inclusive. It knows a lot, and always tells the truth. When prompted with an image, it does not make up facts.",
 
 
55
  },
56
  ],
57
  }
 
213
  user_prompt=user_prompt,
214
  chat_history=chat_history,
215
  )
 
216
  prompt = PROCESSOR.apply_chat_template(resulting_text, add_generation_prompt=True)
217
  inputs = PROCESSOR(
218
  text=prompt,