Docfile commited on
Commit
e871a25
·
verified ·
1 Parent(s): cddd4e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 response.resolve()
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")