Rahatara commited on
Commit
1740146
β€’
1 Parent(s): 80da2d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "Instructions: Consider the following image and provide styling advice:"
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')