Docfile commited on
Commit
59d059f
·
verified ·
1 Parent(s): 5fedf9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ model = genai.GenerativeModel(model_name="gemini-pro-vision")
19
  # Fonction pour générer le contenu
20
  def generate_content(image):
21
  response = model.generate_content(["Write a short, engaging blog post based on this picture. It should include a description of the meal in the photo and talk about my journey meal prepping.", image], stream=True)
22
-
23
  markdown_response = to_markdown(response.resolve())
24
  return markdown_response
25
 
 
19
  # Fonction pour générer le contenu
20
  def generate_content(image):
21
  response = model.generate_content(["Write a short, engaging blog post based on this picture. It should include a description of the meal in the photo and talk about my journey meal prepping.", image], stream=True)
22
+ print(response.text)
23
  markdown_response = to_markdown(response.resolve())
24
  return markdown_response
25