Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
| 18 |
full_prompt = f"""
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 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 |
|