pratikshahp commited on
Commit
2d0804c
·
verified ·
1 Parent(s): 55726a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def get_gemini_response(input_prompt, uploaded_file_path, query):
26
  image_parts = [{"mime_type": mime_type, "data": image_data}]
27
 
28
  # Load the Gemini model and get the response
29
- model = genai.GenerativeModel("gemini-pro-vision")
30
  response = model.generate_content([input_prompt, image_parts[0], query])
31
  return response.text
32
  except Exception as e:
 
26
  image_parts = [{"mime_type": mime_type, "data": image_data}]
27
 
28
  # Load the Gemini model and get the response
29
+ model = genai.GenerativeModel("gemini-1.5-flash")
30
  response = model.generate_content([input_prompt, image_parts[0], query])
31
  return response.text
32
  except Exception as e: