Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def generate_item(tag):
|
|
21 |
"""
|
22 |
# Generate text using Gemini LLM
|
23 |
prompt = f"Generate a short, engaging post about {tag} in the style of a TikTok caption."
|
24 |
-
text_response = client.models.generate_content(model='gemini-2.5-flash-preview-04-17',
|
25 |
text = text_response.text.strip()
|
26 |
|
27 |
# Generate an image using Imagen based on the generated text
|
|
|
21 |
"""
|
22 |
# Generate text using Gemini LLM
|
23 |
prompt = f"Generate a short, engaging post about {tag} in the style of a TikTok caption."
|
24 |
+
text_response = client.models.generate_content(model='gemini-2.5-flash-preview-04-17',contents=[prompt])
|
25 |
text = text_response.text.strip()
|
26 |
|
27 |
# Generate an image using Imagen based on the generated text
|