Michael Krasa commited on
Commit
d3e55a2
·
1 Parent(s): daa8242

nicer examples

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -38,17 +38,17 @@ search_terms_wikipedia = {
38
 
39
  # Templates for AI image generation
40
  prompt_templates = [
41
- "A delicate watercolor painting of a {flower} with morning dew drops, soft pastel colors blending together as the sunrise creates gentle shadows.",
42
- "A whimsical nature journal sketch of a {flower} surrounded by butterflies and bees, with loose watercolor washes in fresh spring colors.",
43
- "An impressionistic scene of a {flower} swaying in the morning breeze, painted in loose brushstrokes with soft blues and golden morning light.",
44
- "A botanical illustration of a {flower} with detailed pencil lines and gentle watercolor washes, surrounded by notes about its features and habitat.",
45
- "A dreamy plein air painting of a {flower} along a morning hiking trail, with misty mountains in the background and soft morning colors."
46
  ]
47
 
48
  # Example images for the interface
49
  example_images = [
50
- 'https://www.deserthorizonnursery.com/wp-content/uploads/2024/03/Brittlebush-Encelia-Farinosa-desert-horizon-nursery.jpg',
51
- 'https://cdn.mos.cms.futurecdn.net/VJE7gSuQ9KWbkqEsWgX5zS.jpg',
52
  'https://www.parksconservancy.org/sites/default/files/styles/basic/public/A_GEN_131213_WTE_109.jpg?itok=9SDtr4b2',
53
  'https://silverfallsseed.com/wp-content/uploads/2016/01/tidy-tips-_-9.jpg',
54
  'https://valleywaternews.org/wp-content/uploads/2016/06/ceanothus-clusters.jpg?w=1440',
@@ -103,7 +103,7 @@ learn = load_learner('export.pkl')
103
  with gr.Blocks() as demo:
104
  # Input section
105
  with gr.Row():
106
- input_image = gr.Image(height=192, width=192, label="Upload Image for Classification", type="pil")
107
 
108
  # Output section
109
  with gr.Row():
 
38
 
39
  # Templates for AI image generation
40
  prompt_templates = [
41
+ "A dreamy watercolor scene of a {flower} on a misty morning trail, with golden sunbeams filtering through towering redwoods, and a curious hummingbird hovering nearby.",
42
+ "A loose, expressive watercolor sketch of a {flower} in a wild meadow, surrounded by dancing butterflies and morning dew drops sparkling like diamonds in the dawn light.",
43
+ "An artist's nature journal page featuring a detailed {flower} study, with delicate ink lines and soft watercolor washes, complete with small sketches of bees and field notes in the margins.",
44
+ "A vibrant plein air painting of a {flower} patch along a coastal hiking trail, with crashing waves and rugged cliffs in the background, painted in bold, energetic brushstrokes.",
45
+ "A whimsical mixed-media scene of a {flower} garden at sunrise, combining loose watercolor washes with detailed botanical illustrations, featuring hidden wildlife and morning fog rolling through the valley."
46
  ]
47
 
48
  # Example images for the interface
49
  example_images = [
50
+ 'https://silverfallsseed.com/wp-content/uploads/2016/01/tidy-tips-_-9.jpg',
51
+ 'https://www.britannica.com/plant/bristlecone-pine',
52
  'https://www.parksconservancy.org/sites/default/files/styles/basic/public/A_GEN_131213_WTE_109.jpg?itok=9SDtr4b2',
53
  'https://silverfallsseed.com/wp-content/uploads/2016/01/tidy-tips-_-9.jpg',
54
  'https://valleywaternews.org/wp-content/uploads/2016/06/ceanothus-clusters.jpg?w=1440',
 
103
  with gr.Blocks() as demo:
104
  # Input section
105
  with gr.Row():
106
+ input_image = gr.Image(height=230, width=230, label="Upload Image for Classification", type="pil")
107
 
108
  # Output section
109
  with gr.Row():