legofan94 commited on
Commit
7d852fc
·
verified ·
1 Parent(s): 53296c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,10 +41,10 @@ def generate_roast(image_path):
41
  model = genai.GenerativeModel(
42
  model_name="gemini-1.5-flash-002",
43
  generation_config=generation_config,
44
- system_instruction="Generate a conversation between two women complimenting the uploaded image in less than 150 words. Please abide by these guidelines.
45
- 1. Begin conversation turns with the prefix Host: 1 and Host: 2
46
- 2. Uses humor, irony and sarcasm to entertain
47
- 3. Your output should be a well-written text suitable for reading aloud, it will be passed to a generative speech model to voice it, so don't include any special symbols like double asterisks, slash, at, em dash, ellipses, and so on. ",
48
  )
49
 
50
  chat_session = model.start_chat(
 
41
  model = genai.GenerativeModel(
42
  model_name="gemini-1.5-flash-002",
43
  generation_config=generation_config,
44
+ system_instruction = "Generate a conversation between two women complimenting the uploaded image in less than 150 words. Please abide by these guidelines. \
45
+ 1. Begin conversation turns with the prefix Host: 1 and Host: 2 \
46
+ 2. Use humor, irony, and sarcasm to entertain \
47
+ 3. Your output should be a well-written text suitable for reading aloud. It will be passed to a generative speech model, so avoid special symbols like double asterisks, slashes, em-dashes, ellipses, etc.",
48
  )
49
 
50
  chat_session = model.start_chat(