JeCabrera commited on
Commit
fa8f07e
·
verified ·
1 Parent(s): 2c99304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -14,16 +14,11 @@ def get_gemini_response(input_prompt, genre, length, language, mood, target_audi
14
  if not input_prompt:
15
  return "Por favor, escribe un mensaje para generar contenido."
16
 
17
- model = genai.GenerativeModel('gemini-2.0-flash')
18
  full_prompt = f"""
19
- You are a creative writer. Create a {genre} in {language} with {length} words.
20
- The {genre} should be {mood} and targeted to {target_audience}.
21
- This is for a {product_type}.
22
- The {genre} should be based on the following prompt:
23
-
24
- "{input_prompt}"
25
-
26
- Make sure it contains realistic and emotional elements.
27
  """
28
  response = model.generate_content([full_prompt])
29
 
 
14
  if not input_prompt:
15
  return "Por favor, escribe un mensaje para generar contenido."
16
 
17
+ model = genai.GenerativeModel('gemini-1.5-flash')
18
  full_prompt = f"""
19
+ Write a {mood} {genre} in {language} about {input_prompt}. This content is for {product_type}
20
+ and should connect with {target_audience}. Use exactly {length} words, make it engaging
21
+ and persuasive, with a clear message and emotional appeal.
 
 
 
 
 
22
  """
23
  response = model.generate_content([full_prompt])
24