Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ print("google-generativeai:", genai.__version__)
|
|
| 11 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
| 12 |
|
| 13 |
TITLE = """<h1 align="center">👗 Gemini Personal Stylist Chatbot 🛍️</h1>"""
|
| 14 |
-
SUBTITLE = """<h2 align="center">Chat with Your Personal Stylist using Gemini Vision Pro 🖼️</h2>"""
|
| 15 |
|
| 16 |
IMAGE_WIDTH = 512
|
| 17 |
|
|
@@ -33,7 +33,7 @@ def bot(
|
|
| 33 |
raise ValueError("GOOGLE_API_KEY is not set. Please set it up.")
|
| 34 |
|
| 35 |
genai.configure(api_key=google_key)
|
| 36 |
-
instructions = "
|
| 37 |
images_with_prompt = [text_prompt, instructions] + [preprocess_image(image_prompt)]
|
| 38 |
|
| 39 |
model = genai.GenerativeModel('gemini-pro-vision')
|
|
|
|
| 11 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
| 12 |
|
| 13 |
TITLE = """<h1 align="center">👗 Gemini Personal Stylist Chatbot 🛍️</h1>"""
|
| 14 |
+
#SUBTITLE = """<h2 align="center">Chat with Your Personal Stylist using Gemini Vision Pro 🖼️</h2>"""
|
| 15 |
|
| 16 |
IMAGE_WIDTH = 512
|
| 17 |
|
|
|
|
| 33 |
raise ValueError("GOOGLE_API_KEY is not set. Please set it up.")
|
| 34 |
|
| 35 |
genai.configure(api_key=google_key)
|
| 36 |
+
instructions = "You are an expert stylist. You can assist anyone regardless gender, race or any other demographic diversity, look stylish and confident. "
|
| 37 |
images_with_prompt = [text_prompt, instructions] + [preprocess_image(image_prompt)]
|
| 38 |
|
| 39 |
model = genai.GenerativeModel('gemini-pro-vision')
|