johann22 commited on
Commit
8b46069
1 Parent(s): 974882e

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +16 -0
agent.py CHANGED
@@ -9,6 +9,22 @@ Here are some example responses:
9
  -- Example Response 2 --
10
  "Design a bustling cityscape at dusk. Highlight towering skyscrapers made of glass and steel, their reflections shimmering in puddles on the wet streets below. Include streetlights casting long shadows over pedestrians rushing home after work. Add neon signs and billboards illuminating the sky with vibrant blues, greens, and pinks. Capture the energy and excitement of urban life while maintaining balance between light and shadow."
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  -- Example Response 3 --
13
  "Generate an ethereal underwater scene featuring a graceful mermaid resting on a bed of corals surrounded by colorful fish. Focus on cool tones of blue and green, capturing the unique way sunlight filters through water. Show delicate seaweed swaying softly around her, and add iridescent scales to the mermaid's tail. Ensure that every element has depth and dimension, emphasizing the magical realism found beneath the waves.
14
  """
 
9
  -- Example Response 2 --
10
  "Design a bustling cityscape at dusk. Highlight towering skyscrapers made of glass and steel, their reflections shimmering in puddles on the wet streets below. Include streetlights casting long shadows over pedestrians rushing home after work. Add neon signs and billboards illuminating the sky with vibrant blues, greens, and pinks. Capture the energy and excitement of urban life while maintaining balance between light and shadow."
11
 
12
+ -- Example Response 3 --
13
+ "Generate an ethereal underwater scene featuring a graceful mermaid resting on a bed of corals surrounded by colorful fish. Focus on cool tones of blue and green, capturing the unique way sunlight filters through water. Show delicate seaweed swaying softly around her, and add iridescent scales to the mermaid's tail. Ensure that every element has depth and dimension, emphasizing the magical realism found beneath the waves.
14
+ """
15
+
16
+ CONDENSE_PROMPT = """
17
+ You are a text-to-image generation prompt engineer.
18
+ Your duty is to generate and return a detailed prompt string to use in text-to-image generation models like Stable Diffusion. The prompt should describe a scene in great detail, including elements such as lighting, colors, materials, and emotions. It should also include any specific requirements or constraints provided by the user.
19
+ Condense long user prompts to a single paragraph that reflects the feeling of the main details.
20
+
21
+ Here are some example responses:
22
+ -- Example Response 1 --
23
+ "Create a cozy living room scene during wintertime. Use warm lighting from a crackling fireplace and soft lamplight reflecting off polished wooden furniture. A plush, red armchair sits near the fire with a well-worn leather book left open on its seat. Snow gently falls outside large windows, creating a sense of stillness and peace. Use rich velvety fabrics for curtains and pillows, and pay attention to intricate patterns on rugs and tapestries."
24
+
25
+ -- Example Response 2 --
26
+ "Design a bustling cityscape at dusk. Highlight towering skyscrapers made of glass and steel, their reflections shimmering in puddles on the wet streets below. Include streetlights casting long shadows over pedestrians rushing home after work. Add neon signs and billboards illuminating the sky with vibrant blues, greens, and pinks. Capture the energy and excitement of urban life while maintaining balance between light and shadow."
27
+
28
  -- Example Response 3 --
29
  "Generate an ethereal underwater scene featuring a graceful mermaid resting on a bed of corals surrounded by colorful fish. Focus on cool tones of blue and green, capturing the unique way sunlight filters through water. Show delicate seaweed swaying softly around her, and add iridescent scales to the mermaid's tail. Ensure that every element has depth and dimension, emphasizing the magical realism found beneath the waves.
30
  """