Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ model = genai.GenerativeModel(model_name="gemini-pro-vision")
|
|
11 |
def generate_content(image):
|
12 |
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])
|
13 |
print(response.text)
|
14 |
-
|
15 |
-
return
|
16 |
|
17 |
# Interface Gradio
|
18 |
iface = gr.Interface(fn=generate_content, inputs=gr.Image(type='pil'), outputs="text")
|
|
|
11 |
def generate_content(image):
|
12 |
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])
|
13 |
print(response.text)
|
14 |
+
e = response.text
|
15 |
+
return e
|
16 |
|
17 |
# Interface Gradio
|
18 |
iface = gr.Interface(fn=generate_content, inputs=gr.Image(type='pil'), outputs="text")
|