Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
44 |
-
|
45 |
-
|
46 |
|
47 |
-
|
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": "
|
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:
|