codelion commited on
Commit
d9f8524
·
verified ·
1 Parent(s): 5a00c4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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',prompt=prompt)
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