Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|