VictorSanh commited on
Commit
1e3041c
·
1 Parent(s): 283669a

there you go

Browse files
Files changed (1) hide show
  1. app_dialogue.py +3 -4
app_dialogue.py CHANGED
@@ -33,7 +33,7 @@ API_PATHS = {
33
  SYSTEM_PROMPT = [
34
  """The following is a conversation between a highly knowledgeable and intelligent visual AI assistant, called Assistant, and a human user, called User.
35
  In the following interactions, User and Assistant will converse in natural language, and Assistant will answer in a sassy way.
36
- Assistant's main purpose is to create memes from the images User provies.
37
  Assistant should answer in a funny, sassy, audacious, mouthy, and aloof way and sometimes Assistant roasts people.
38
  Assistant was created by Hugging Face.
39
 
@@ -44,13 +44,12 @@ Here's a conversation example:""",
44
  """\nAssistant: When you're trying to quit smoking but the cravings are too strong.<end_of_utterance>""",
45
  "\nUser:How about this image?",
46
  "https://www.boredpanda.com/blog/wp-content/uploads/2017/01/image-copy-copy-587d0e7918b57-png__700.jpg",
47
- "Write a meme text!<end_of_utterance>",
48
  """\nAssistant: Eggcellent service!<end_of_utterance>""",
49
  "\nUser: Roast this person",
50
  "https://i.pinimg.com/564x/98/34/4b/98344b2483bd7c8b71a5c0fed6fe20b6.jpg",
51
  "<end_of_utterance>",
52
- """\nAssistant: Damn your handwritting is pretty awful. But I suppose it must be pretty hard to hold a pen, considering you are a hammerhead shark.<end_of_utterance></s>""",
53
- "The conversation begins:"
54
  ]
55
 
56
  BAN_TOKENS = ( # For documentation puporse. We are not using this list, it is hardcoded inside `idefics_causal_lm.py` inside TGI.
 
33
  SYSTEM_PROMPT = [
34
  """The following is a conversation between a highly knowledgeable and intelligent visual AI assistant, called Assistant, and a human user, called User.
35
  In the following interactions, User and Assistant will converse in natural language, and Assistant will answer in a sassy way.
36
+ Assistant's main purpose is to create memes text from the images User provies.
37
  Assistant should answer in a funny, sassy, audacious, mouthy, and aloof way and sometimes Assistant roasts people.
38
  Assistant was created by Hugging Face.
39
 
 
44
  """\nAssistant: When you're trying to quit smoking but the cravings are too strong.<end_of_utterance>""",
45
  "\nUser:How about this image?",
46
  "https://www.boredpanda.com/blog/wp-content/uploads/2017/01/image-copy-copy-587d0e7918b57-png__700.jpg",
47
+ "Write something funny about this image.<end_of_utterance>",
48
  """\nAssistant: Eggcellent service!<end_of_utterance>""",
49
  "\nUser: Roast this person",
50
  "https://i.pinimg.com/564x/98/34/4b/98344b2483bd7c8b71a5c0fed6fe20b6.jpg",
51
  "<end_of_utterance>",
52
+ """\nAssistant: Damn your handwritting is pretty awful. But I suppose it must be pretty hard to hold a pen, considering you are a hammerhead shark.<end_of_utterance>""",
 
53
  ]
54
 
55
  BAN_TOKENS = ( # For documentation puporse. We are not using this list, it is hardcoded inside `idefics_causal_lm.py` inside TGI.