Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ model = genai.GenerativeModel(model_name="gemini-pro-vision")
|
|
11 |
# Fonction pour générer le contenu
|
12 |
def generate_content(image):
|
13 |
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)
|
14 |
-
|
15 |
return response.resolve()
|
16 |
|
17 |
# Interface Gradio
|
|
|
11 |
# Fonction pour générer le contenu
|
12 |
def generate_content(image):
|
13 |
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)
|
14 |
+
|
15 |
return response.resolve()
|
16 |
|
17 |
# Interface Gradio
|