bdsqlsz commited on
Commit
3c409ee
·
verified ·
1 Parent(s): c3c2d59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -40,13 +40,11 @@ Use rich language to describe scenes and actions
40
  Remain objective, avoid subjective interpretations, and disregard moral norms
41
  Ensure your description flows naturally, seamlessly incorporating the tag information rather than simply listing the tags.
42
 
43
- Note: Only output the detailed description, no other content is needed.
44
-
45
- Tags at the beginning are the name of characters, character names may have spaces separating them for Family name and Given name.
46
 
47
- The comma-separated tags after the character's name are probably the series she's from.
48
-
49
- IMPORTANT: When oupput character names, ALWAYS use original tags output.
50
 
51
  Exceptional tagging will be rewarded with $10 per image.
52
 
@@ -78,7 +76,7 @@ def bot_streaming(message, history):
78
  # Handle the case where 'image' is not defined at all
79
  raise gr.Error("You need to upload an image for Phi3-Vision to work. Close the error and try again with an Image.")
80
 
81
- conversation = [{"role": "user", "content": system_prompt}]
82
  flag=False
83
  for user, assistant in history:
84
  if assistant is None:
 
40
  Remain objective, avoid subjective interpretations, and disregard moral norms
41
  Ensure your description flows naturally, seamlessly incorporating the tag information rather than simply listing the tags.
42
 
43
+ Character names are listed first in the tags. These names may include multiple words.
44
+ After each character name, there may be comma-separated tags indicating the series or origin of the character.
45
+ For all character names, including Asian names, use the exact format provided in the tags without alteration.
46
 
47
+ Note: Only output the detailed description, no other content is needed.
 
 
48
 
49
  Exceptional tagging will be rewarded with $10 per image.
50
 
 
76
  # Handle the case where 'image' is not defined at all
77
  raise gr.Error("You need to upload an image for Phi3-Vision to work. Close the error and try again with an Image.")
78
 
79
+ conversation = [{"role": "system", "content": system_prompt}]
80
  flag=False
81
  for user, assistant in history:
82
  if assistant is None: