Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def bot(
|
|
| 44 |
|
| 45 |
genai.configure(api_key=google_key)
|
| 46 |
instructions = "You are an expert stylist. You suggest and evaluate any style related question. To make anyone regardless gender, race or any other demographic diversity, look stylish."
|
| 47 |
-
model_name = 'gemini-pro-vision' if image_prompt else 'gemini-
|
| 48 |
|
| 49 |
if image_prompt:
|
| 50 |
images_with_prompt = [text_prompt, instructions, preprocess_image(image_prompt)]
|
|
|
|
| 44 |
|
| 45 |
genai.configure(api_key=google_key)
|
| 46 |
instructions = "You are an expert stylist. You suggest and evaluate any style related question. To make anyone regardless gender, race or any other demographic diversity, look stylish."
|
| 47 |
+
model_name = 'gemini-pro-vision' if image_prompt else 'gemini-1.5-pro-latest'
|
| 48 |
|
| 49 |
if image_prompt:
|
| 50 |
images_with_prompt = [text_prompt, instructions, preprocess_image(image_prompt)]
|