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