Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def get_gemini_response(input_prompt, genre, length, language, mood, target_audi
|
|
16 |
|
17 |
model = genai.GenerativeModel('gemini-2.0-flash')
|
18 |
full_prompt = f"""
|
19 |
-
You are a
|
20 |
Use exactly {length} words.
|
21 |
|
22 |
Target Audience: {target_audience}
|
@@ -67,6 +67,7 @@ def get_gemini_response(input_prompt, genre, length, language, mood, target_audi
|
|
67 |
**Importante:**
|
68 |
- **Haz que la historia sea humana y emocional**, evitando frases promocionales evidentes.
|
69 |
- Format the output in clear, separate paragraphs with line breaks
|
|
|
70 |
"""
|
71 |
response = model.generate_content([full_prompt])
|
72 |
|
|
|
16 |
|
17 |
model = genai.GenerativeModel('gemini-2.0-flash')
|
18 |
full_prompt = f"""
|
19 |
+
You are a creative storyteller. Write a {mood} {genre} in {language} about "{input_prompt}" using everyday words and natural conversation.
|
20 |
Use exactly {length} words.
|
21 |
|
22 |
Target Audience: {target_audience}
|
|
|
67 |
**Importante:**
|
68 |
- **Haz que la historia sea humana y emocional**, evitando frases promocionales evidentes.
|
69 |
- Format the output in clear, separate paragraphs with line breaks
|
70 |
+
- Only write {genre}, anything else.
|
71 |
"""
|
72 |
response = model.generate_content([full_prompt])
|
73 |
|