Michael Krasa
commited on
Commit
·
d3e55a2
1
Parent(s):
daa8242
nicer examples
Browse files
app.py
CHANGED
|
@@ -38,17 +38,17 @@ search_terms_wikipedia = {
|
|
| 38 |
|
| 39 |
# Templates for AI image generation
|
| 40 |
prompt_templates = [
|
| 41 |
-
"A
|
| 42 |
-
"A
|
| 43 |
-
"An
|
| 44 |
-
"A
|
| 45 |
-
"A
|
| 46 |
]
|
| 47 |
|
| 48 |
# Example images for the interface
|
| 49 |
example_images = [
|
| 50 |
-
'https://
|
| 51 |
-
'https://
|
| 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=
|
| 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():
|